From bab779ac919f98b668cf0e79f5f2cbb6b33ae64a Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 12 Apr 2016 17:50:56 +0100 Subject: [PATCH] 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 --- .../restdocs/templates/asciidoctor/default-http-request.snippet | 2 +- .../templates/asciidoctor/default-http-response.snippet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-request.snippet b/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-request.snippet index a3e529ae..9893e2a0 100644 --- a/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-request.snippet +++ b/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-request.snippet @@ -1,4 +1,4 @@ -[source,http] +[source,http,options="nowrap"] ---- {{method}} {{path}} HTTP/1.1 {{#headers}} diff --git a/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-response.snippet b/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-response.snippet index fe095d36..90a25e85 100644 --- a/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-response.snippet +++ b/spring-restdocs-core/src/main/resources/org/springframework/restdocs/templates/asciidoctor/default-http-response.snippet @@ -1,4 +1,4 @@ -[source,http] +[source,http,options="nowrap"] ---- HTTP/1.1 {{statusCode}} {{statusReason}} {{#headers}}