Unidiff1 files changed, 3 insertions, 0 deletions
|
diff --git a/ui-tree.c b/ui-tree.c index c6159ec..553dbaa 100644 --- a/ ui-tree.c+++ b/ ui-tree.c |
|
@@ -26,4 +26,6 @@ static void print_text_buffer(char *buf, unsigned long size) |
26 | idx = 0; |
26 | idx = 0; |
27 | lineno = 0; |
27 | lineno = 0; |
| |
28 | |
| |
29 | if (size) { |
28 | htmlf(numberfmt, ++lineno); |
30 | htmlf(numberfmt, ++lineno); |
29 | while(idx < size - 1) { // skip absolute last newline |
31 | while(idx < size - 1) { // skip absolute last newline |
@@ -32,4 +34,5 @@ static void print_text_buffer(char *buf, unsigned long size) |
32 | idx++; |
34 | idx++; |
33 | } |
35 | } |
| |
36 | } |
34 | html("</pre></td>\n"); |
37 | html("</pre></td>\n"); |
35 | html("<td class='lines'><pre><code>"); |
38 | html("<td class='lines'><pre><code>"); |
|