Fossil SCM
Always include the txt option when adding the ln= parameter because lines on rendered content doesn't work.
Commit
1992856655fd427d5a2df4bc8cc0143a0f0a4ed6
Parent
39f084cf2cf8791…
1 file changed
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -1880,11 +1880,11 @@ | ||
| 1880 | 1880 | if( descOnly ){ |
| 1881 | 1881 | style_submenu_element("Content", "Content", "%R/artifact/%s", zUuid); |
| 1882 | 1882 | }else{ |
| 1883 | 1883 | style_submenu_element("Line Numbers", "Line Numbers", |
| 1884 | 1884 | "%R/info/%s%s",zUuid, |
| 1885 | - ((zLn&&*zLn) ? "" : "?ln=0")); | |
| 1885 | + ((zLn&&*zLn) ? "" : "?txt=1&ln=0")); | |
| 1886 | 1886 | @ <hr /> |
| 1887 | 1887 | content_get(rid, &content); |
| 1888 | 1888 | if( renderAsWiki ){ |
| 1889 | 1889 | wiki_render_by_mimetype(&content, zMime); |
| 1890 | 1890 | }else if( renderAsHtml ){ |
| 1891 | 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) ? "" : "?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 |