[commit: haddock] master: Fix external anchors to contain HTML file extension. (1064953)
git at git.haskell.org
git at git.haskell.org
Wed Jul 8 08:40:21 UTC 2015
Repository : ssh://git@git.haskell.org/haddock
On branch : master
Link : http://git.haskell.org/haddock.git/commitdiff/1064953c6590c05303c6cbd2230b9e13d3ba1376
>---------------------------------------------------------------
commit 1064953c6590c05303c6cbd2230b9e13d3ba1376
Author: Łukasz Hanuszczak <lukasz.hanuszczak at gmail.com>
Date: Fri Jun 12 10:57:30 2015 +0200
Fix external anchors to contain HTML file extension.
>---------------------------------------------------------------
1064953c6590c05303c6cbd2230b9e13d3ba1376
haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs b/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
index b7cc5ae..99a0f33 100644
--- a/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
+++ b/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
@@ -96,7 +96,7 @@ internalHyperlink name content =
externalHyperlink :: GHC.Name -> Html -> Html
externalHyperlink name content =
- Html.anchor content ! [ Html.href $ maybe "" id mmod ++ "#" ++ ident ]
+ Html.anchor content ! [ Html.href $ maybe "" id mmod ++ ".html#" ++ ident ]
where
mmod = GHC.moduleNameString . GHC.moduleName <$> GHC.nameModule_maybe name
ident = externalAnchorIdent name
More information about the ghc-commits
mailing list