git.iko.soy/typeable/pandoc
on master help sign in
Man writer: better output for line break:
2cb22a1fiddlosopher
src/Text/Pandoc/Writers/Man.hs+1−1
@@ -248,7 +248,7 @@ inlineToMan opts (Code str) =
248inlineToMan opts (Str str) = return $ text $ escapeString str
248inlineToMan opts (Str str) = return $ text $ escapeString str
249inlineToMan opts (TeX str) = return $ text $ escapeCode str
249inlineToMan opts (TeX str) = return $ text $ escapeCode str
250inlineToMan opts (HtmlInline str) = return $ text $ escapeCode str
250inlineToMan opts (HtmlInline str) = return $ text $ escapeCode str
251−inlineToMan opts (LineBreak) = return $ text "\n.P 0\n"
251+inlineToMan opts (LineBreak) = return $ text "\n.PD 0\n.P\n.PD\n"
252inlineToMan opts Space = return $ char ' '
252inlineToMan opts Space = return $ char ' '
253inlineToMan opts (Link txt (src, _)) = do
253inlineToMan opts (Link txt (src, _)) = do
254 linktext <- inlineListToMan opts txt
254 linktext <- inlineListToMan opts txt