Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Asciidoc 스니펫 파일의 띄어쓰기로 인한 깨짐 문제를 수정한다. #45

Closed
seokjin8678 opened this issue Dec 22, 2023 · 0 comments · Fixed by #46
Closed
Assignees
Labels
🛠 수정 수정에 관한 작업

Comments

@seokjin8678
Copy link
Contributor

이슈 내용

src/test/resources/org/springframework/restdocs/templates/response-fields.snippet 파일이 다음과 같이 들여쓰기로 되어있습니다.

====Response Fields
    |===
    |필드명|타입|설명|null여부

{{#fields}}
    |{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}}
    |{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}}
    |{{#tableCellContent}}{{description}}{{/tableCellContent}}
    |{{#tableCellContent}}{{#optional}}true{{/optional}}{{^optional}}{{/optional}}{{/tableCellContent}}
{{/fields}}
    |===

때문에 Asciidoc 파일이 다음과 같이 깨지는 현상이 발생합니다.
image

해당 스니펫은 다음과 같이 되어야 합니다.

==== Response Fields
|===
|필드명|타입|설명|null여부

{{#fields}}
|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}}
|{{#tableCellContent}}`+{{type}}+`{{/tableCellContent}}
|{{#tableCellContent}}{{description}}{{/tableCellContent}}
|{{#tableCellContent}}{{#optional}}true{{/optional}}{{^optional}}{{/optional}}{{/tableCellContent}}
{{/fields}}
|===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠 수정 수정에 관한 작업
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant