From 25ae5cd04bd9ad72ba0303ea07b8dfdfbc053e01 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 5 May 2013 17:10:58 +0200 Subject: Fix bootstrap look for tree page Again this requires an external stylesheet. --- ui-tree.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ui-tree.c') diff --git a/ui-tree.c b/ui-tree.c index b1adcc7..ea95702 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -21,13 +21,13 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) const char *numberfmt = "%1$d\n"; - html("\n"); + html("
\n"); if (ctx.cfg.enable_tree_linenumbers) { - html("
");
+		html("
");
 		idx = 0;
 		lineno = 0;
-	
+
 		if (size) {
 			htmlf(numberfmt, ++lineno);
 			while(idx < size - 1) { // skip absolute last newline
@@ -43,20 +43,20 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size)
 	}
 
 	if (ctx.repo->source_filter) {
-		html("
");
+		html("
");
 		ctx.repo->source_filter->argv[1] = xstrdup(name);
 		cgit_open_filter(ctx.repo->source_filter);
 		html_raw(buf, size);
 		cgit_close_filter(ctx.repo->source_filter);
 		free(ctx.repo->source_filter->argv[1]);
 		ctx.repo->source_filter->argv[1] = NULL;
-		html("
\n"); + html("\n"); return; } - html("
");
+	html("
");
 	html_txt(buf);
-	html("
\n"); + html("
\n"); } #define ROWLEN 32 @@ -181,12 +181,12 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, static void ls_head() { - html("\n"); + html("
\n"); html(""); - html(""); - html(""); - html(""); - html(""); + html(""); + html(""); + html("\n"); header = 1; } -- cgit v1.2.3-54-g00ecf
ModeNameSize"); + html("ModeNameSize"); html("