Fixed bug in LaTeX reader, which wrongly assumed that the
roman numeral after "enum" in "setcounter" would consist entirely
of "i"s. enumiv is legitimate.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@961 788f1e2b-df1e-0410-8736-df70ead52e1b
commit3b790b80f3cf8f13eacda0bc5e5f6d3238242fd8
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateThu 30 Aug 2007, 19:12 (19 years ago)
parent14dc520
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -248,7 +248,7 @@ orderedList = try $ do
248248 spaces
249249 start <- option 1 $ try $ do failIfStrict
250250 string "\\setcounter{enum"
251− many1 (char 'i')
251+ many1 (oneOf "iv")
252252 string "}{"
253253 num <- many1 digit
254254 char '}'