summaryrefslogtreecommitdiffabout
path: root/ui-tree.c
Side-by-side diff
Diffstat (limited to 'ui-tree.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 7bf2ad2..f64e6e0 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -23,6 +23,7 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size)
html("<table summary='blob content' class='blob'>\n");
+ if (ctx.cfg.linenumbers) {
html("<tr><td class='linenumbers'><pre>");
idx = 0;
lineno = 0;
@@ -36,6 +37,10 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size)
}
}
html("</pre></td>\n");
+ }
+ else {
+ html("<tr>\n");
+ }
if (ctx.repo->source_filter) {
html("<td class='lines'><pre><code>");