git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Fix spacing in formatting.

The normalizing tests revealed a problem with unformatted spaces, brought about by `spanTrim`. This fixes by not trimming the spaces out of spans until they are in their final form.

commit8e5bd9d851aa0f60462015f61e3980b134e3c131 authorJesse Rosenthal <jrosenthal@jhu.edu> dateSun 22 Jun 2014, 01:47 (12 years ago) parentca4add6
1 file changed+1−1
src/Text/Pandoc/Readers/Docx.hs+1−1
src/Text/Pandoc/Readers/Docx.hs+1−1
@@ -286,8 +286,8 @@ parPartsToInlines opts docx parparts =
286286 (if False -- TODO depend on option
287287 then bottomUp (makeImagesSelfContained docx)
288288 else id) $
289− bottomUp spanCorrect $
290289 bottomUp spanTrim $
290+ bottomUp spanCorrect $
291291 bottomUp spanReduce $
292292 concatMap (parPartToInlines opts docx) parparts
293293