aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-09-29 21:48:59 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-09-29 21:48:59 -0700
commit29e1c9529f4b9f6cd02f89a477a1bc57943e6f26 (patch)
tree19482d956af0a92b9c39b96df903fee38fd08757 /src
parent067f2e640fe3934142850fc83e7aaa5fc764a0a1 (diff)
downloadpandoc-29e1c9529f4b9f6cd02f89a477a1bc57943e6f26.tar.gz
Don't wrap lines in rST line blocks.
Closes #1656. Fixing pandoc to wrap the lines but insert spaces would be much more complicated. This at least makes the output semantically correct.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/RST.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs
index 57ebfc360..a32d3ebac 100644
--- a/src/Text/Pandoc/Writers/RST.hs
+++ b/src/Text/Pandoc/Writers/RST.hs
@@ -177,7 +177,7 @@ blockToRST (Para [Image txt (src,'f':'i':'g':':':tit)]) = do
blockToRST (Para inlines)
| LineBreak `elem` inlines = do -- use line block if LineBreaks
lns <- mapM inlineListToRST $ splitBy (==LineBreak) inlines
- return $ (vcat $ map (text "| " <>) lns) <> blankline
+ return $ (vcat $ map (nowrap . (text "| " <>)) lns) <> blankline
| otherwise = do
contents <- inlineListToRST inlines
return $ contents <> blankline