Fossil SCM

Always include the txt option when adding the ln= parameter because lines on rendered content doesn't work.

andybradford 2015-03-14 17:24 trunk
Commit 1992856655fd427d5a2df4bc8cc0143a0f0a4ed6
1 file changed +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -1880,11 +1880,11 @@
18801880
if( descOnly ){
18811881
style_submenu_element("Content", "Content", "%R/artifact/%s", zUuid);
18821882
}else{
18831883
style_submenu_element("Line Numbers", "Line Numbers",
18841884
"%R/info/%s%s",zUuid,
1885
- ((zLn&&*zLn) ? "" : "?ln=0"));
1885
+ ((zLn&&*zLn) ? "" : "?txt=1&ln=0"));
18861886
@ <hr />
18871887
content_get(rid, &content);
18881888
if( renderAsWiki ){
18891889
wiki_render_by_mimetype(&content, zMime);
18901890
}else if( renderAsHtml ){
18911891
--- src/info.c
+++ src/info.c
@@ -1880,11 +1880,11 @@
1880 if( descOnly ){
1881 style_submenu_element("Content", "Content", "%R/artifact/%s", zUuid);
1882 }else{
1883 style_submenu_element("Line Numbers", "Line Numbers",
1884 "%R/info/%s%s",zUuid,
1885 ((zLn&&*zLn) ? "" : "?ln=0"));
1886 @ <hr />
1887 content_get(rid, &content);
1888 if( renderAsWiki ){
1889 wiki_render_by_mimetype(&content, zMime);
1890 }else if( renderAsHtml ){
1891
--- src/info.c
+++ src/info.c
@@ -1880,11 +1880,11 @@
1880 if( descOnly ){
1881 style_submenu_element("Content", "Content", "%R/artifact/%s", zUuid);
1882 }else{
1883 style_submenu_element("Line Numbers", "Line Numbers",
1884 "%R/info/%s%s",zUuid,
1885 ((zLn&&*zLn) ? "" : "?txt=1&ln=0"));
1886 @ <hr />
1887 content_get(rid, &content);
1888 if( renderAsWiki ){
1889 wiki_render_by_mimetype(&content, zMime);
1890 }else if( renderAsHtml ){
1891

Keyboard Shortcuts

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