git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: Slight change in code for generating unique

identifiers. The numbers used after duplicate identifiers are now separated from them by a hyphen: Duplicate-1 rather than Duplicate1. git-svn-id: https://pandoc.googlecode.com/svn/trunk@648 788f1e2b-df1e-0410-8736-df70ead52e1b

commit608b22e9ddc93d7ef0443822dd2fefc48a24bbd6 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 8 Jul 2007, 03:40 (19 years ago) parent5b68993
1 file changed+1−1
src/Text/Pandoc/Writers/HTML.hs+1−1
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -198,7 +198,7 @@ uniqueIdentifiers ls =
198198 let addIdentifier (nonuniqueIds, uniqueIds) l =
199199 let new = inlineListToIdentifier l
200200 matches = length $ filter (== new) nonuniqueIds
201− new' = new ++ if matches > 0 then show matches else ""
201+ new' = new ++ if matches > 0 then ("-" ++ show matches) else ""
202202 in (new:nonuniqueIds, new':uniqueIds)
203203 in reverse $ snd (foldl addIdentifier ([],[]) $ ls)
204204