git.iko.soy/typeable/pandoc
on master help sign in
Fixed regression in example lists.

This was associated with e1be934dc2ff061e5200017d6503280686983e1f.

commit0998f774ced02c8298e2427853d196b392bba299 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 9 Jan 2013, 15:54 (14 years ago) parentd599c4c
1 file changed+7−6
src/Text/Pandoc/Writers/LaTeX.hs+7−6
src/Text/Pandoc/Writers/LaTeX.hs+7−6
@@ -364,12 +364,13 @@ blockToLaTeX (OrderedList (start, numstyle, numdelim) lst) = do
364364 items <- mapM listItemToLaTeX lst
365365 modify (\s -> s {stOLLevel = oldlevel})
366366 let tostyle x = case numstyle of
367− Decimal -> "\\arabic" <> braces x
368− UpperRoman -> "\\Roman" <> braces x
369− LowerRoman -> "\\roman" <> braces x
370− UpperAlpha -> "\\Alph" <> braces x
371− LowerAlpha -> "\\alph" <> braces x
372− _ -> x
367+ Decimal -> "\\arabic" <> braces x
368+ UpperRoman -> "\\Roman" <> braces x
369+ LowerRoman -> "\\roman" <> braces x
370+ UpperAlpha -> "\\Alph" <> braces x
371+ LowerAlpha -> "\\alph" <> braces x
372+ Example -> "\\arabic" <> braces x
373+ DefaultStyle -> "\\arabic" <> braces x
373374 let todelim x = case numdelim of
374375 OneParen -> x <> ")"
375376 TwoParens -> parens x