Skip to content

Commit bab779a

Browse files
committed
Disable wrapping in Asciidoctor HTTP request and response snippets
The HTTP request and response snippets are intended to be an exact representation of the HTTP request or response which would not wrap. This commit disables wrapping by adding the nowrap option to the default templates for these two snippets. Closes gh-204
1 parent 8b039e5 commit bab779a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-request.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[source,http]
1+
[source,http,options="nowrap"]
22
----
33
{{method}} {{path}} HTTP/1.1
44
{{#headers}}

spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-response.snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[source,http]
1+
[source,http,options="nowrap"]
22
----
33
HTTP/1.1 {{statusCode}} {{statusReason}}
44
{{#headers}}

0 commit comments

Comments
 (0)