Closes gh-16875
pull/16901/head
Johnny Lim 6 years ago committed by Stephane Nicoll
parent cce8c45ae6
commit 87874ffb70

@ -23,8 +23,6 @@ package org.springframework.boot.configurationdocs;
*/
class AsciidocBuilder {
private static final String NEWLINE = System.lineSeparator();
private final StringBuilder content;
AsciidocBuilder() {
@ -33,20 +31,17 @@ class AsciidocBuilder {
public AsciidocBuilder appendKey(Object... items) {
for (Object item : items) {
append("`+", item, "+` +", NEWLINE);
appendln("`+", item, "+` +");
}
return this;
}
public AsciidocBuilder newLine() {
append(NEWLINE);
return this;
return append(System.lineSeparator());
}
public AsciidocBuilder appendln(Object... items) {
append(items);
append(NEWLINE);
return this;
return append(items).newLine();
}
public AsciidocBuilder append(Object... items) {

@ -48,8 +48,7 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
public void write(AsciidocBuilder builder) {
builder.append("|");
this.configurationKeys.forEach(builder::appendKey);
builder.newLine().appendln("|");
builder.appendln("|+++", this.description, "+++");
builder.newLine().appendln("|").appendln("|+++", this.description, "+++");
}
}

Loading…
Cancel
Save