Talk:Display an outline as a nested table: Difference between revisions

Content added Content deleted
Line 31: Line 31:


In practice, of course, an indented text outline will often have several top level (unindented) lines.
In practice, of course, an indented text outline will often have several top level (unindented) lines.
To put it another way, many outlines represent forests – lists of trees – rather than single trees.
To put it another way, many outlines represent forests – lists of trees – rather than single trees (or can otherwise be thought of as a single tree with a hidden virtual root).


FWIW I've updated the Haskell, JavaScript and Functional Python versions here to allow for the forest case by writing out a series of (wiki) tables, one for each tree, separated by a couple of linefeeds.
FWIW I've updated the Haskell, JavaScript and Functional Python versions here to allow for the forest case by writing out a series of (wiki) tables, one for each tree, separated by a couple of linefeeds.