diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-04-01 12:26:08 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-04-01 12:27:40 +0200 |
commit | 34b9bee5a4eff0d4b76a2d9ac153105a4da363ed (patch) | |
tree | 98f50a436b4c8a320e9b2c8e7aa42ceaf0298e5b /src | |
parent | 8761d5775075b8a0eb12be2ded8c931156b09a18 (diff) | |
download | pandoc-34b9bee5a4eff0d4b76a2d9ac153105a4da363ed.tar.gz |
OpenDocument writer: wider labels for lists.
This avoids overly narrow labels for ordered lists with
() delimiters.
However, arguably it creates overly wide labels for bullets.
Also, lists now start flush with the margin, rather than
indented.
Fixes #2421.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/OpenDocument.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/OpenDocument.hs b/src/Text/Pandoc/Writers/OpenDocument.hs index 3432d258a..491069343 100644 --- a/src/Text/Pandoc/Writers/OpenDocument.hs +++ b/src/Text/Pandoc/Writers/OpenDocument.hs @@ -531,10 +531,10 @@ orderedListLevelStyle (s,n, d) (l,ls) = listLevelStyle :: Int -> Doc listLevelStyle i = - let indent = show (0.25 * fromIntegral i :: Double) in + let indent = show (0.4 * fromIntegral (i - 1) :: Double) in selfClosingTag "style:list-level-properties" [ ("text:space-before" , indent ++ "in") - , ("text:min-label-width", "0.25in")] + , ("text:min-label-width", "0.4in")] tableStyle :: Int -> [(Char,Double)] -> Doc tableStyle num wcs = |