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
This commit is contained in:
fiddlosopher 2007-10-12 03:03:29 +00:00
parent 4928045915
commit 403f5f4728
2 changed files with 0 additions and 3 deletions

2
debian/changelog vendored
View file

@ -68,8 +68,6 @@ pandoc (0.45) unstable; urgency=low
+ If label for a link reference contains a colon, surround it by `
signs so it won't be interpreted as the end of the link label.
* Man writer: Don't print link source for internal links (#...).
* Main.hs (tabFilter): Treat '\r' at end of line as newline (in
addition to "\r\n" and '\n').

View file

@ -272,7 +272,6 @@ inlineToMan opts (TeX str) = return $ text $ escapeCode str
inlineToMan opts (HtmlInline str) = return $ text $ escapeCode str
inlineToMan opts (LineBreak) = return $ text "\n.PD 0\n.P\n.PD\n"
inlineToMan opts Space = return $ char ' '
inlineToMan opts (Link txt (('#':_), _)) = inlineListToMan opts txt
inlineToMan opts (Link txt (src, _)) = do
linktext <- inlineListToMan opts txt
let srcSuffix = if isPrefixOf "mailto:" src then drop 7 src else src