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>
|
||||
<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, "+++");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user