Skip to content

Commit 8624a33

Browse files
committed
Polish "Prevent unwanted incrementing of section number in operation macro"
See gh-638
1 parent 1d91136 commit 8624a33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-restdocs-asciidoctor/src/test/java/org/springframework/restdocs/asciidoctor/AbstractOperationBlockMacroTests.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ public void tableSnippetIncludeWithPdfBackend() throws Exception {
117117

118118
@Test
119119
public void includeSnippetInSection() throws Exception {
120-
String result = this.asciidoctor.convert(
121-
"= A\n:doctype: book\n:sectnums:\n\nAlpha\n\n== B\n\nBravo\n\n" + "operation::some-operation[snippets='curl-request']\n\n== C\n",
122-
this.options);
120+
String result = this.asciidoctor.convert("= A\n:doctype: book\n:sectnums:\n\nAlpha\n\n== B\n\nBravo\n\n"
121+
+ "operation::some-operation[snippets='curl-request']\n\n== C\n", this.options);
123122
assertThat(result).isEqualTo(getExpectedContentFromFile("snippet-in-section"));
124123
}
125124

0 commit comments

Comments
 (0)