Refine configuration property table column sizes
Increase the size of the first column to improve readability. Closes gh-23604
This commit is contained in:
parent
18e4ab5042
commit
68d65376d2
|
|
@ -46,7 +46,7 @@ class ConfigurationTable {
|
||||||
|
|
||||||
String toAsciidocTable() {
|
String toAsciidocTable() {
|
||||||
AsciidocBuilder builder = new AsciidocBuilder();
|
AsciidocBuilder builder = new AsciidocBuilder();
|
||||||
builder.appendln("[cols=\"1,1,2\", options=\"header\"]");
|
builder.appendln("[cols=\"2,1,1\", options=\"header\"]");
|
||||||
builder.appendln("|===");
|
builder.appendln("|===");
|
||||||
builder.appendln("|Key|Default Value|Description");
|
builder.appendln("|Key|Default Value|Description");
|
||||||
builder.appendln();
|
builder.appendln();
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ public class ConfigurationTableTests {
|
||||||
"This is another description.", false);
|
"This is another description.", false);
|
||||||
table.addEntry(new SingleConfigurationTableEntry(first));
|
table.addEntry(new SingleConfigurationTableEntry(first));
|
||||||
table.addEntry(new SingleConfigurationTableEntry(second));
|
table.addEntry(new SingleConfigurationTableEntry(second));
|
||||||
assertThat(table.toAsciidocTable()).isEqualTo("[cols=\"1,1,2\", options=\"header\"]" + NEWLINE + "|==="
|
assertThat(table.toAsciidocTable()).isEqualTo("[cols=\"2,1,1\", options=\"header\"]" + NEWLINE + "|==="
|
||||||
+ NEWLINE + "|Key|Default Value|Description" + NEWLINE + NEWLINE
|
+ NEWLINE + "|Key|Default Value|Description" + NEWLINE + NEWLINE
|
||||||
+ "|[[spring.test.other]]<<spring.test.other,`+spring.test.other+`>>" + NEWLINE + "|`+other value+`"
|
+ "|[[spring.test.other]]<<spring.test.other,`+spring.test.other+`>>" + NEWLINE + "|`+other value+`"
|
||||||
+ NEWLINE + "|+++This is another description.+++" + NEWLINE + NEWLINE
|
+ NEWLINE + "|+++This is another description.+++" + NEWLINE + NEWLINE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue