See gh-18838
This commit is contained in:
Johnny Lim
2019-11-01 14:04:43 +09:00
committed by Stephane Nicoll
parent 7d5c468ebb
commit 45d85778b8
4 changed files with 6 additions and 7 deletions

View File

@@ -62,11 +62,11 @@ class SingleConfigurationTableEntry extends ConfigurationTableEntry {
private void writeDefaultValue(AsciidocBuilder builder) {
String defaultValue = (this.defaultValue != null) ? this.defaultValue : "";
defaultValue = defaultValue.replace("\\", "\\\\").replace("|", "\\|");
if (defaultValue.isEmpty()) {
builder.appendln("|");
}
else {
defaultValue = defaultValue.replace("\\", "\\\\").replace("|", "\\|");
builder.appendln("|`+", defaultValue, "+`");
}
}