git.iko.soy/typeable/pandoc
on master help sign in
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

commit6c8bb8e9a3a13052e1944f1e15c7838df9aa6379 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 24 Jul 2007, 00:11 (19 years ago) parentae009fa
1 file changed+1−1
src/Text/Pandoc/Writers/HTML.hs+1−1
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -99,7 +99,7 @@ tableOfContents opts headers ids =
9999 let opts' = opts { writerIgnoreNotes = True }
100100 contentsTree = hierarchicalize headers
101101 contents = evalState (mapM (elementToListItem opts') contentsTree)
102− (WriterState {stNotes= [], stIds = [], stHead = []})
102+ (WriterState {stNotes= [], stIds = ids, stHead = []})
103103 in thediv ! [identifier "toc"] $ unordList contents
104104
105105-- | Converts an Element to a list item for a table of contents,