Docx writer: Fix bullets/lists indentation

Fix appearance of bullets/numbered lists (the first level is slightly
indented to the right instead of right on the margin).

New golden files have been tested using Word 2010 on Windows 10.
This commit is contained in:
cholonam
2020-11-24 20:25:03 +09:00
committed by John MacFarlane
parent 630b1bff2b
commit 5f4deb5455
32 changed files with 3 additions and 3 deletions
+3 -3
View File
@@ -732,9 +732,9 @@ mkLvl marker lvl =
, mknode "w:lvlText" [("w:val",lvltxt)] ()
, mknode "w:lvlJc" [("w:val","left")] ()
, mknode "w:pPr" []
[ mknode "w:tabs" []
$ mknode "w:tab" [("w:val","num"),("w:pos",show $ lvl * step)] ()
, mknode "w:ind" [("w:left",show $ lvl * step + hang),("w:hanging",show hang)] ()
[ mknode "w:ind" [ ("w:left",show $ lvl * step + step)
, ("w:hanging",show (hang :: Int))
] ()
]
]
where (fmt, lvltxt, start) =
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.