aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-04-21 09:46:05 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-04-21 09:46:05 -0700
commit9a347c37ad0f5a6f892816e0d213ba5caa5c24cc (patch)
tree545a0d48f0955d4ea650129c498dfd4b907cae86 /src/Text/Pandoc
parent9989170df24bab0bcd0d4d928205301a343e2564 (diff)
downloadpandoc-9a347c37ad0f5a6f892816e0d213ba5caa5c24cc.tar.gz
RST writer: Don't wrap link references.
Closes #487.
Diffstat (limited to 'src/Text/Pandoc')
-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 e6c84760e..d98079940 100644
--- a/src/Text/Pandoc/Writers/RST.hs
+++ b/src/Text/Pandoc/Writers/RST.hs
@@ -97,7 +97,7 @@ keyToRST (label, (src, _)) = do
let label'' = if ':' `elem` (render Nothing label')
then char '`' <> label' <> char '`'
else label'
- return $ ".. _" <> label'' <> ": " <> text src
+ return $ nowrap $ ".. _" <> label'' <> ": " <> text src
-- | Return RST representation of notes.
notesToRST :: [[Block]] -> State WriterState Doc