summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-04-05 15:17:35 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-04-05 15:17:35 +0200
commit12a3481632bfc3d477759095fa01fa92e169b292 (patch)
tree0e0049f6db74f4d4d69a919e9510a6414d076fef /src/Text/Pandoc
parent48729f9715f4deec6d621c363fd4d16d089497b2 (diff)
Ms writer: respect text wrapping options.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/Ms.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Ms.hs b/src/Text/Pandoc/Writers/Ms.hs
index 4118a7bfb..f162c4213 100644
--- a/src/Text/Pandoc/Writers/Ms.hs
+++ b/src/Text/Pandoc/Writers/Ms.hs
@@ -500,7 +500,12 @@ inlineToMs _ il@(RawInline f str)
report $ InlineNotRendered il
return empty
inlineToMs _ (LineBreak) = return $ cr <> text ".br" <> cr
-inlineToMs opts SoftBreak = handleNotes opts cr
+inlineToMs opts SoftBreak =
+ handleNotes opts $
+ case writerWrapText opts of
+ WrapAuto -> space
+ WrapNone -> space
+ WrapPreserve -> cr
inlineToMs opts Space = handleNotes opts space
inlineToMs opts (Link _ txt ('#':ident, _)) = do
-- internal link