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 @@ ...@@ -29,7 +29,7 @@
<testcontainers.version>1.10.6</testcontainers.version> <testcontainers.version>1.10.6</testcontainers.version>
<testng.version>6.14.3</testng.version> <testng.version>6.14.3</testng.version>
<dependency-management-plugin.version>1.0.6.RELEASE</dependency-management-plugin.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> </properties>
<scm> <scm>
<url>https://github.com/spring-projects/spring-boot</url> <url>https://github.com/spring-projects/spring-boot</url>
......
...@@ -31,6 +31,18 @@ class AsciidocBuilder { ...@@ -31,6 +31,18 @@ class AsciidocBuilder {
this.content = new StringBuilder(); 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) { public AsciidocBuilder appendln(Object... items) {
append(items); append(items);
append(NEWLINE); append(NEWLINE);
......
...@@ -47,9 +47,9 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry { ...@@ -47,9 +47,9 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
@Override @Override
public void write(AsciidocBuilder builder) { public void write(AsciidocBuilder builder) {
builder.append("|"); builder.append("|");
this.configurationKeys.forEach((key) -> builder.appendln("`+", key, "+` +")); this.configurationKeys.forEach(builder::appendKey);
builder.appendln("").appendln("|").append("|+++") builder.newLine().appendln("|");
.append(this.description).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