diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-06-22 01:47:11 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-06-22 01:53:30 -0400 |
commit | 8e5bd9d851aa0f60462015f61e3980b134e3c131 (patch) | |
tree | 6ba73a6f506458fd0c5d40ccc082885c7603ef95 /src/Text/Pandoc/Readers | |
parent | ca4add679ce6dd438cc3f6d58f82d04a9ad6305e (diff) | |
download | pandoc-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.hs | 2 |
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 |