GH-626 - Polishing in Asciidoctor rendering.

This commit is contained in:
Lukas Dohmen
2024-05-19 11:42:11 +02:00
committed by Oliver Drotbohm
parent 0c3cdc856b
commit 5fb6addf7c
2 changed files with 3 additions and 4 deletions

View File

@@ -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();

View File

@@ -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();
}