mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish "Separate compound properties in appendices"
Closes gh-16480
This commit is contained in:
parent
5b63b807ad
commit
c4938055b4
@ -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 {
|
|||||||
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 {
|
|||||||
@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, "+++");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user