aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-11-18 21:26:25 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-11-18 21:26:25 -0800
commitbea0fdf6e6d3f6dab000a6a4b6a0f74776348b98 (patch)
treedac6fbe7a3e5b604c92a01e70c2e6d73ad00f48d /src/Text/Pandoc/Writers
parent1561d51cc58ee6b915a35bd057830d4b27379b5b (diff)
downloadpandoc-bea0fdf6e6d3f6dab000a6a4b6a0f74776348b98.tar.gz
AsciiDoc: Don't use Roman numerals in ordered lists.
AsiiDoc doesn't support them.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/AsciiDoc.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs
index f2436e3ff..ab2b01656 100644
--- a/src/Text/Pandoc/Writers/AsciiDoc.hs
+++ b/src/Text/Pandoc/Writers/AsciiDoc.hs
@@ -213,8 +213,12 @@ blockToAsciiDoc opts (Table caption aligns widths headers rows) = do
blockToAsciiDoc opts (BulletList items) = do
contents <- mapM (bulletListItemToAsciiDoc opts) items
return $ cat contents <> blankline
-blockToAsciiDoc opts (OrderedList (start, sty, _delim) items) = do
- let markers = orderedListMarkers (start, sty, Period)
+blockToAsciiDoc opts (OrderedList (_start, sty, _delim) items) = do
+ let sty' = case sty of
+ UpperRoman -> UpperAlpha
+ LowerRoman -> LowerAlpha
+ x -> x
+ let markers = orderedListMarkers (1, sty', Period) -- start num not used
let markers' = map (\m -> if length m < 3
then m ++ replicate (3 - length m) ' '
else m) markers