[No bug, no wish!] Possible BUG with PopupNested
Posted: 02 Mar 2017 13:32
You might call this a
, or you might call it "works as intended".
(In the second case this is a wish :-) )
I want a separator line ("-") on a not-first level of PopupNested. Example:
The left aligned "-" doesn't work correct, and (here) leads to some garbage in result. The second *aligned* "-" works as intended.
(At least the garbage looks like a
.)
I'd expect (or wish) the first version to work as the second does.
To say: if you have more levels of indentation, and several groups of lines being packed together (part of them being generated), it can be a bit complicated to correctly indent the "-".
(And for me: it also looks better being just on the very left side.)
So, if possible: please handle a pur token "-" (without indentation) just as if it were indented.
That is: "-" would mean "separator line here".
(In the second case this is a wish :-) )
I want a separator line ("-") on a not-first level of PopupNested. Example:
Code: Select all
$menu = <<<#>>>
111
222
aaa
bbb
-
ccc
ddd
333
eee
fff
-
ggg
hhh
#>>>;
$sel = PopUpNested($menu);
Echo "sel = '$sel'.";(At least the garbage looks like a
I'd expect (or wish) the first version to work as the second does.
To say: if you have more levels of indentation, and several groups of lines being packed together (part of them being generated), it can be a bit complicated to correctly indent the "-".
(And for me: it also looks better being just on the very left side.)
So, if possible: please handle a pur token "-" (without indentation) just as if it were indented.
That is: "-" would mean "separator line here".