showHelpDialog: automatically split the contents of a <line> block at
newlines
This commit is contained in:
parent
a5aae32cc1
commit
cb9361b067
1 changed files with 6 additions and 4 deletions
|
@ -794,10 +794,12 @@ showHelpDialog = func {
|
||||||
g = dialog[name].addChild("group");
|
g = dialog[name].addChild("group");
|
||||||
g.set("layout", "vbox");
|
g.set("layout", "vbox");
|
||||||
g.set("default-padding", 1);
|
g.set("default-padding", 1);
|
||||||
foreach (l; lines) {
|
foreach (var lin; lines) {
|
||||||
|
foreach (var l; split("\n", lin.getValue())) {
|
||||||
w = g.addChild("text");
|
w = g.addChild("text");
|
||||||
w.set("halign", "left");
|
w.set("halign", "left");
|
||||||
w.set("label", " " ~ l.getValue() ~ " ");
|
w.set("label", " " ~ l ~ " ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue