path: root/src/Text
diff options
authorJesse Rosenthal <>2014-06-22 01:47:11 -0400
committerJesse Rosenthal <>2014-06-22 01:53:30 -0400
commit8e5bd9d851aa0f60462015f61e3980b134e3c131 (patch)
tree6ba73a6f506458fd0c5d40ccc082885c7603ef95 /src/Text
parentca4add679ce6dd438cc3f6d58f82d04a9ad6305e (diff)
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.
Diffstat (limited to 'src/Text')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs
index 299adf5a8..09c2330fb 100644
--- a/src/Text/Pandoc/Readers/Docx.hs
+++ b/src/Text/Pandoc/Readers/Docx.hs
@@ -286,8 +286,8 @@ parPartsToInlines opts docx parparts =
(if False -- TODO depend on option
then bottomUp (makeImagesSelfContained docx)
else id) $
- bottomUp spanCorrect $
bottomUp spanTrim $
+ bottomUp spanCorrect $
bottomUp spanReduce $
concatMap (parPartToInlines opts docx) parparts