diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-04-05 15:17:35 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-04-05 15:17:35 +0200 |
commit | 12a3481632bfc3d477759095fa01fa92e169b292 (patch) | |
tree | 0e0049f6db74f4d4d69a919e9510a6414d076fef /src/Text/Pandoc | |
parent | 48729f9715f4deec6d621c363fd4d16d089497b2 (diff) |
Ms writer: respect text wrapping options.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/Ms.hs | 7 |
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 |