Fossil SCM

Fix misplaced </span> so it actually lands on the line that begins the <span> rather than a few lines before it begins.

andybradford 2015-03-06 04:10 trunk
Commit ee45080dd6da73e00c9cbe1d61aeae0b28ca74e4
1 file changed +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -1737,11 +1737,11 @@
17371737
if( i>0 ){
17381738
char *zHtml = htmlize(z, i);
17391739
cgi_append_content(zHtml, -1);
17401740
fossil_free(zHtml);
17411741
}
1742
- if( n==iStart-15 ) cgi_append_content("</span>", -1);
1742
+ if( n==iTop ) cgi_append_content("</span>", -1);
17431743
if( n==iEnd ) cgi_append_content("</div>", -1);
17441744
else cgi_append_content("\n", 1);
17451745
z += i;
17461746
if( z[0]=='\n' ) z++;
17471747
}
17481748
--- src/info.c
+++ src/info.c
@@ -1737,11 +1737,11 @@
1737 if( i>0 ){
1738 char *zHtml = htmlize(z, i);
1739 cgi_append_content(zHtml, -1);
1740 fossil_free(zHtml);
1741 }
1742 if( n==iStart-15 ) cgi_append_content("</span>", -1);
1743 if( n==iEnd ) cgi_append_content("</div>", -1);
1744 else cgi_append_content("\n", 1);
1745 z += i;
1746 if( z[0]=='\n' ) z++;
1747 }
1748
--- src/info.c
+++ src/info.c
@@ -1737,11 +1737,11 @@
1737 if( i>0 ){
1738 char *zHtml = htmlize(z, i);
1739 cgi_append_content(zHtml, -1);
1740 fossil_free(zHtml);
1741 }
1742 if( n==iTop ) cgi_append_content("</span>", -1);
1743 if( n==iEnd ) cgi_append_content("</div>", -1);
1744 else cgi_append_content("\n", 1);
1745 z += i;
1746 if( z[0]=='\n' ) z++;
1747 }
1748

Keyboard Shortcuts

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