all repos — cgit @ 25f6a1f4c29b6a6009a185e9473317f0fe64616d

a hyperfast web frontend for git written in c

Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 06 Jan 2009 21:51:09 +0100
commit

25f6a1f4c29b6a6009a185e9473317f0fe64616d

parent

50fbd46c917a06f60235da59adb860697ea94eb0

2 files changed, 5 insertions(+), 3 deletions(-)

jump to
M tests/t0104-tree.shtests/t0104-tree.sh

@@ -15,7 +15,7 @@ grep -e "<a id=.n1. name=.n1. href=.#n1.>1</a>" trash/tmp

' run_test 'no line 2' ' - grep -e "<a id=.n2. name=.n2. href=.#n2.>2</a>" trash/tmp + ! grep -e "<a id=.n2. name=.n2. href=.#n2.>2</a>" trash/tmp ' run_test 'generate foo+bar/tree' 'cgit_url "foo%2bbar/tree" >trash/tmp'
M ui-tree.cui-tree.c

@@ -54,8 +54,10 @@ start = idx + 1;

} idx++; } - htmlf(linefmt, ++lineno); - html_txt(buf + start); + if (start < idx) { + htmlf(linefmt, ++lineno); + html_txt(buf + start); + } html("</td></tr>\n"); html("</table>\n"); }