Skip to content

Commit 8e22dd8

Browse files
antonwiensRobWin
authored andcommitted
make examples always start newline if there is other content before the example (#294)
1 parent 569f3c0 commit 8e22dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/swagger2markup/internal/component/PropertiesTableComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters para
186186
}
187187

188188
if (optionalExample.isPresent()) {
189-
if (isNotBlank(description) || optionalDefaultValue.isPresent()) {
189+
if (isNotBlank(descriptionContent.toString())) {
190190
descriptionContent.newLine(true);
191191
}
192192

0 commit comments

Comments
 (0)