diff options
author | Conal Elliott <conal@conal.net> | 2007-02-14 21:54:00 +0000 |
---|---|---|
committer | Conal Elliott <conal@conal.net> | 2007-02-14 21:54:00 +0000 |
commit | cc5e79229d4da32eb512d3a6e307e86db11133c4 (patch) | |
tree | 6071e7523f6bda06df03675a4bfa6c5fae7c8b2a /src/Haddock | |
parent | 5d3d5af3f860178fb7c2173a8312432a3f324bc1 (diff) |
added substitution %{FILE///c}
Diffstat (limited to 'src/Haddock')
-rw-r--r-- | src/Haddock/Backends/Html.hs | 3 |
1 files changed, 3 insertions, 0 deletions
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 |