Commit c4938055 authored by Brian Clozel's avatar Brian Clozel

Polish "Separate compound properties in appendices"

Closes gh-16480
parent 5b63b807
......@@ -29,7 +29,7 @@
<testcontainers.version>1.10.6</testcontainers.version>
<testng.version>6.14.3</testng.version>
<dependency-management-plugin.version>1.0.6.RELEASE</dependency-management-plugin.version>
<spring-doc-resources.version>0.1.0.RELEASE</spring-doc-resources.version>
<spring-doc-resources.version>0.1.1.RELEASE</spring-doc-resources.version>
</properties>
<scm>
<url>https://github.com/spring-projects/spring-boot</url>
......
......@@ -31,6 +31,18 @@ class AsciidocBuilder {
this.content = new StringBuilder();
}
public AsciidocBuilder appendKey(Object... items) {
for (Object item : items) {
append("`+", item, "+` +", NEWLINE);
}
return this;
}
public AsciidocBuilder newLine() {
append(NEWLINE);
return this;
}
public AsciidocBuilder appendln(Object... items) {
append(items);
append(NEWLINE);
......
......@@ -47,9 +47,9 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
@Override
public void write(AsciidocBuilder builder) {
builder.append("|");
this.configurationKeys.forEach((key) -> builder.appendln("`+", key, "+` +"));
builder.appendln("").appendln("|").append("|+++")
.append(this.description).appendln("+++");
this.configurationKeys.forEach(builder::appendKey);
builder.newLine().appendln("|");
builder.appendln("|+++", this.description, "+++");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment