GH-626 - Polishing in Asciidoctor rendering.
This commit is contained in:
committed by
Oliver Drotbohm
parent
0c3cdc856b
commit
5fb6addf7c
@@ -192,7 +192,7 @@ class Asciidoctor {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
public String renderConfigurationProperties(ApplicationModule module, List<ModuleProperty> properties) {
|
||||
public String renderConfigurationProperties(List<ModuleProperty> properties) {
|
||||
|
||||
if (properties.isEmpty()) {
|
||||
return "none";
|
||||
@@ -211,8 +211,7 @@ class Asciidoctor {
|
||||
if (defaultValue != null && StringUtils.hasText(defaultValue)) {
|
||||
|
||||
builder = builder.append(", default ")
|
||||
.append(toInlineCode(defaultValue))
|
||||
.append("");
|
||||
.append(toInlineCode(defaultValue));
|
||||
}
|
||||
|
||||
var description = it.description();
|
||||
|
||||
@@ -349,7 +349,7 @@ public class Documenter {
|
||||
|
||||
// Properties
|
||||
.append(addTableRow("Properties",
|
||||
asciidoctor.renderConfigurationProperties(module, properties.getModuleProperties(module)), options)) //
|
||||
asciidoctor.renderConfigurationProperties(properties.getModuleProperties(module)), options)) //
|
||||
.append(startOrEndTable())
|
||||
.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user