HTML writer: Fixed footnote backrefs in --ascii mode.

This commit is contained in:
John MacFarlane 2011-02-06 09:46:59 -08:00
parent aec5489960
commit fb5faaa91e

View file

@ -638,7 +638,8 @@ blockListToNote opts ref blocks =
-- that block. Otherwise, insert a new Plain block with the backlink.
let backlink = [RawInline "html" $ " <a href=\"#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref ++
"\" class=\"footnoteBackLink\"" ++
" title=\"Jump back to footnote " ++ ref ++ "\">↩</a>"]
" title=\"Jump back to footnote " ++ ref ++ "\">" ++
(if writerAscii opts then "&#8617;" else "") ++ "</a>"]
blocks' = if null blocks
then []
else let lastBlock = last blocks