(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".