From cc5e79229d4da32eb512d3a6e307e86db11133c4 Mon Sep 17 00:00:00 2001 From: Conal Elliott Date: Wed, 14 Feb 2007 21:54:00 +0000 Subject: added substitution %{FILE///c} --- src/Haddock/Backends/Html.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Haddock/Backends') diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs index 8c73e0ff..52a80096 100644 --- a/src/Haddock/Backends/Html.hs +++ b/src/Haddock/Backends/Html.hs @@ -191,6 +191,9 @@ spliceURL maybe_file maybe_mod maybe_name url = run url run ('%':'{':'M':'O':'D':'U':'L':'E':'/':'.':'/':c:'}':rest) = map (\x -> if x == '.' then c else x) mod ++ run rest + run ('%':'{':'F':'I':'L':'E':'/':'/':'/':c:'}':rest) = + map (\x -> if x == '/' then c else x) file ++ run rest + run (c:rest) = c : run rest wikiButton :: WikiURLs -> Maybe Module -> HtmlTable -- cgit v1.2.3