]> Cypherpunks repositories - gostls13.git/commitdiff
remove absolute paths from search results
authorRobert Griesemer <gri@golang.org>
Fri, 19 Feb 2010 18:09:20 +0000 (10:09 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 19 Feb 2010 18:09:20 +0000 (10:09 -0800)
R=adg
CC=golang-dev
https://golang.org/cl/216053

lib/godoc/search.html

index a6b7fe29cd6217a3fae6ae14835ee242280f9ccb..3d417aa27155ac545dfedd7ef7b167bcd3f786fd 100644 (file)
@@ -26,7 +26,7 @@
                        {.repeated section Files}
                                {.repeated section Groups}
                                        {.repeated section Infos}
-                                               <a href="{File.Path|url-src}?h={Query|html-esc}#L{@|infoLine}">{File.Path|html}:{@|infoLine}</a>
+                                               <a href="{File.Path|url-src}?h={Query|html-esc}#L{@|infoLine}">{File.Path|url-src}:{@|infoLine}</a>
                                                <pre>{@|infoSnippet}</pre>
                                        {.end}
                                {.end}
@@ -38,7 +38,7 @@
                {.repeated section @}
                        <h3 id="Local_{Pak.Path|url-pkg}">package <a href="{Pak.Path|url-pkg}">{Pak.Name|html}</a></h3>
                        {.repeated section Files}
-                               <a href="{File.Path|url-src}?h={Query|html-esc}">{File.Path|html}</a>
+                               <a href="{File.Path|url-src}?h={Query|html-esc}">{File.Path|url-src}</a>
                                <table class="layout">
                                {.repeated section Groups}
                                        <tr>