aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-06-22 01:47:11 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-06-22 01:53:30 -0400
commit8e5bd9d851aa0f60462015f61e3980b134e3c131 (patch)
tree6ba73a6f506458fd0c5d40ccc082885c7603ef95 /src/Text/Pandoc/Readers
parentca4add679ce6dd438cc3f6d58f82d04a9ad6305e (diff)
downloadpandoc-8e5bd9d851aa0f60462015f61e3980b134e3c131.tar.gz
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/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Docx.hs2
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