aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-01-10 10:40:49 -0800
committerJohn MacFarlane <[email protected]>2022-01-10 10:40:49 -0800
commit7bf119168658627dbddcc6753b79a5f921519782 (patch)
tree464d540b7e82a45914b9ad73f0cfc7014899b898 /src
parent6f739cdb4d754e04a006aa796c45342e92a424bb (diff)
HTML writer: don't break attributes values when wrapping.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Blaze.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/Blaze.hs b/src/Text/Pandoc/Writers/Blaze.hs
index 8233043a3..692e89e27 100644
--- a/src/Text/Pandoc/Writers/Blaze.hs
+++ b/src/Text/Pandoc/Writers/Blaze.hs
@@ -57,20 +57,20 @@ layoutMarkup = go True mempty
(space' wrap
<> literal (getText rawkey)
<> char '='
- <> doubleQuotes (fromChoiceString wrap value)
+ <> doubleQuotes (fromChoiceString False value)
<> attrs) h
go wrap attrs (AddCustomAttribute key value h) =
go wrap
(space' wrap
<> fromChoiceString wrap key
<> char '='
- <> doubleQuotes (fromChoiceString wrap value)
+ <> doubleQuotes (fromChoiceString False value)
<> attrs) h
go wrap _ (Content content _) = fromChoiceString wrap content
go wrap _ (Comment comment _) =
literal "<!--"
<> space' wrap
- <> fromChoiceString wrap comment
+ <> fromChoiceString False comment
<> space' wrap
<> "-->"
go wrap attrs (Append h1 h2) = go wrap attrs h1 <> go wrap attrs h2