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
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[source,http]
|
||||
[source,http,options="nowrap"]
|
||||
----
|
||||
{{method}} {{path}} HTTP/1.1
|
||||
{{#headers}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[source,http]
|
||||
[source,http,options="nowrap"]
|
||||
----
|
||||
HTTP/1.1 {{statusCode}} {{statusReason}}
|
||||
{{#headers}}
|
||||
|
||||
Reference in New Issue
Block a user