bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

XhtmlHandler - uses * for ordered list items #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The XhtmlHandler does not track what type of list it is in (i.e. ordered vs
unordered) so it always uses '*' for list items.  It needs to be changed to
use '*' for unordered lists and '#' for ordered lists.  XhtmlHandler should
maintain a stack of list types to track which character to use for list items.

Original issue reported on code.google.com by dannylev...@gmail.com on 17 Jan 2008 at 3:48

GoogleCodeExporter commented 8 years ago
I fixed this in my copy of XhtmlHandler by changing the begin() method in the
TagHandler for li to be:

public void begin(TagContext context) {
   String markup = context.getParent().getName().equals("ol") ? "#" : "*";
   context.getScannerContext().beginListItem(markup);
}

Original comment by dannylev...@gmail.com on 17 Jan 2008 at 7:30

GoogleCodeExporter commented 8 years ago

Original comment by mikhail....@gmail.com on 29 Jun 2008 at 11:22