Fixed bug in TOC generation in HTML writer (regression,

introduced by the revision in the WriterState type).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@793 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2007-07-24 00:11:34 +00:00
parent ae009fab46
commit 6c8bb8e9a3

View file

@ -99,7 +99,7 @@ tableOfContents opts headers ids =
let opts' = opts { writerIgnoreNotes = True }
contentsTree = hierarchicalize headers
contents = evalState (mapM (elementToListItem opts') contentsTree)
(WriterState {stNotes= [], stIds = [], stHead = []})
(WriterState {stNotes= [], stIds = ids, stHead = []})
in thediv ! [identifier "toc"] $ unordList contents
-- | Converts an Element to a list item for a table of contents,