git.iko.soy/typeable/pandoc
on master help sign in
Ms writer: fixed hard line breaks.
commite180a2efa6477dd08b7c6c41816d6cfdf9f24afd authorJohn MacFarlane <jgm@berkeley.edu> dateThu 23 Mar 2017, 14:48 (10 years ago) parentdd1ac8f
2 files changed+2−5
src/Text/Pandoc/Writers/Ms.hs+1−2 test/writer.ms+1−3
src/Text/Pandoc/Writers/Ms.hs+1−2
@@ -438,8 +438,7 @@ inlineToMs opts (Math DisplayMath str) = do
438438inlineToMs _ (RawInline f str)
439439 | f == Format "man" = return $ text str
440440 | otherwise = return empty
441−inlineToMs _ (LineBreak) = return $
442− cr <> text ".PD 0" $$ text ".P" $$ text ".PD" <> cr
441+inlineToMs _ (LineBreak) = return $ cr <> text ".br" <> cr
443442inlineToMs opts SoftBreak = handleNotes opts cr
444443inlineToMs opts Space = handleNotes opts space
445444inlineToMs opts (Link _ txt (src, _)) = do
test/writer.ms+1−3
@@ -68,9 +68,7 @@ Here's one with a bullet.
6868* criminey.
6969.LP
7070There should be a hard line break
71−.PD 0
72−.P
73−.PD
71+.br
7472here.
7573.PP
7674 * * * * *