aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Blaze.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Blaze.hs b/src/Text/Pandoc/Writers/Blaze.hs
index 4bd21b789..8233043a3 100644
--- a/src/Text/Pandoc/Writers/Blaze.hs
+++ b/src/Text/Pandoc/Writers/Blaze.hs
@@ -113,8 +113,8 @@ toChunks :: Text -> [Doc Text]
toChunks = map toDoc . T.groupBy sameStatus
where
toDoc t
- | T.any (== ' ') t = space
- | T.any (== '\n') t = cr
+ | t == " " = space
+ | t == "\n" = cr
| otherwise = literal t
sameStatus c d =
(c == ' ' && d == ' ') ||