Skip to content

Commit

Permalink
GH-608 - Polishing in Asciidoctor rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasdo authored and odrotbohm committed May 22, 2024
1 parent 4706300 commit b83119e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public String renderEvents(ApplicationModule module) {
return builder.toString();
}

public String renderConfigurationProperties(ApplicationModule module, List<ModuleProperty> properties) {
public String renderConfigurationProperties(List<ModuleProperty> properties) {

if (properties.isEmpty()) {
return "none";
Expand All @@ -211,8 +211,7 @@ public String renderConfigurationProperties(ApplicationModule module, List<Modul
if (defaultValue != null && StringUtils.hasText(defaultValue)) {

builder = builder.append(", default ")
.append(toInlineCode(defaultValue))
.append("");
.append(toInlineCode(defaultValue));
}

var description = it.description();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ String toModuleCanvas(ApplicationModule module, CanvasOptions options) {

// Properties
.append(addTableRow("Properties",
asciidoctor.renderConfigurationProperties(module, properties.getModuleProperties(module)), options)) //
asciidoctor.renderConfigurationProperties(properties.getModuleProperties(module)), options)) //
.append(startOrEndTable())
.toString();
}
Expand Down

0 comments on commit b83119e

Please sign in to comment.