branches with status:
Name Status Last Modified Last Commit
lp:~bhossley/+junk/leo_to_html 1 Development 2011-10-08 21:42:35 UTC
4557. "Show Outline as HTML" and "Save Outl...

Author: SegundoBob
Revision Date: 2011-10-08 21:09:13 UTC

"Show Outline as HTML" and "Save Outline as HTML" fail to show the subtree rooted by the first root node in the outline.

The fix is in function do_xhtml() in leo_to_html.py: Change the logic to convert to HTML the subtree rooted by the first root node as well as all the subtrees rooted by the "folllowing siblings" of the first root.

I suspect the code was originally correct. On 2008-02-28 rev 1 of leo_to_html.py was put in the Bazaar repository. Perhaps at that time, c.rootPosition() returned the "hidden root" and if p="hidden root", then p.following_siblings() returned all the visible root nodes. I don't know when or why the leo_to_html.py code became incorrect.

11 of 1 result