Undid last change: instead of blocking the internal links in the
writers, it makes more sense to block them in the HTML reader.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1048 788f1e2b-df1e-0410-8736-df70ead52e1b
commit403f5f47288f5c65d5354fded1a2164185b1178c
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateFri 12 Oct 2007, 03:03 (19 years ago)
parent4928045
debian/changelog−2
@@ -68,8 +68,6 @@ pandoc (0.45) unstable; urgency=low
6868 + If label for a link reference contains a colon, surround it by `
6969 signs so it won't be interpreted as the end of the link label.
7070
71− * Man writer: Don't print link source for internal links (#...).
72−
7371 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
7472 addition to "\r\n" and '\n').
7573
src/Text/Pandoc/Writers/Man.hs−1
@@ -272,7 +272,6 @@ inlineToMan opts (TeX str) = return $ text $ escapeCode str
272272inlineToMan opts (HtmlInline str) = return $ text $ escapeCode str
273273inlineToMan opts (LineBreak) = return $ text "\n.PD 0\n.P\n.PD\n"
274274inlineToMan opts Space = return $ char ' '
275−inlineToMan opts (Link txt (('#':_), _)) = inlineListToMan opts txt
276275inlineToMan opts (Link txt (src, _)) = do
277276 linktext <- inlineListToMan opts txt
278277 let srcSuffix = if isPrefixOf "mailto:" src then drop 7 src else src