diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-11-18 21:26:25 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-11-18 21:26:25 -0800 |
commit | bea0fdf6e6d3f6dab000a6a4b6a0f74776348b98 (patch) | |
tree | dac6fbe7a3e5b604c92a01e70c2e6d73ad00f48d /src/Text/Pandoc/Writers | |
parent | 1561d51cc58ee6b915a35bd057830d4b27379b5b (diff) | |
download | pandoc-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.hs | 8 |
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 |