Fossil SCM

Fix to hyperlinks on search results.

drh 2015-02-03 06:05 trunk
Commit 1c2581233716e3532ae2b29cb3075c16cd136970
1 file changed +1 -1
+1 -1
--- src/search.c
+++ src/search.c
@@ -813,11 +813,11 @@
813813
const char *zLabel = db_column_text(&q, 2);
814814
if( nRow==0 ){
815815
@ <ol>
816816
}
817817
nRow++;
818
- @ <li><p><a href='%s(zUrl)'>%h(zLabel)</a><br>
818
+ @ <li><p><a href='%R%s(zUrl)'>%h(zLabel)</a><br>
819819
@ <span class='snippet'>%s(zSnippet)</span></li>
820820
}
821821
db_finalize(&q);
822822
if( nRow ){
823823
@ </ol>
824824
--- src/search.c
+++ src/search.c
@@ -813,11 +813,11 @@
813 const char *zLabel = db_column_text(&q, 2);
814 if( nRow==0 ){
815 @ <ol>
816 }
817 nRow++;
818 @ <li><p><a href='%s(zUrl)'>%h(zLabel)</a><br>
819 @ <span class='snippet'>%s(zSnippet)</span></li>
820 }
821 db_finalize(&q);
822 if( nRow ){
823 @ </ol>
824
--- src/search.c
+++ src/search.c
@@ -813,11 +813,11 @@
813 const char *zLabel = db_column_text(&q, 2);
814 if( nRow==0 ){
815 @ <ol>
816 }
817 nRow++;
818 @ <li><p><a href='%R%s(zUrl)'>%h(zLabel)</a><br>
819 @ <span class='snippet'>%s(zSnippet)</span></li>
820 }
821 db_finalize(&q);
822 if( nRow ){
823 @ </ol>
824

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button