OpenDocument writer: improve bullet/numbering alignment.
This patch eliminates the large gap we used to have between bullet and text, and also ensures that numbers in numbered lists will be right-aligned. Closes #4385.
This commit is contained in:
parent
9e58730a74
commit
f82d574d14
2 changed files with 579 additions and 193 deletions
|
@ -563,10 +563,18 @@ orderedListLevelStyle (s,n, d) (l,ls) =
|
|||
|
||||
listLevelStyle :: Int -> Doc
|
||||
listLevelStyle i =
|
||||
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.4in")]
|
||||
let indent = show (0.5 * fromIntegral i :: Double) in
|
||||
inTags True "style:list-level-properties"
|
||||
[ ("text:list-level-position-and-space-mode",
|
||||
"label-alignment")
|
||||
, ("fo:text-align", "right")
|
||||
] $
|
||||
selfClosingTag "style:list-level-label-alignment"
|
||||
[ ("text:label-followed-by", "listtab")
|
||||
, ("text:list-tab-stop-position", indent ++ "in")
|
||||
, ("fo:text-indent", "-0.1in")
|
||||
, ("fo:margin-left", indent ++ "in")
|
||||
]
|
||||
|
||||
tableStyle :: Int -> [(Char,Double)] -> Doc
|
||||
tableStyle num wcs =
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue