[PATCH] more validation fixes (passes xhtml strict)

William Bell william.bell at frog.za.net
Mon Sep 17 16:54:55 CEST 2012


 From b01e90b891a41dc0df808cfa88caf56f94978257 Mon Sep 17 00:00:00 2001
From: William Bell <william.bell at frog.za.net>
Date: Mon, 17 Sep 2012 16:40:21 +0200
Subject: [PATCH] validation

---
  ui-diff.c |    8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui-diff.c b/ui-diff.c
index 0922217..a79e451 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -105,7 +105,7 @@ static void print_fileinfo(struct fileinfo *info)
      }
      html("</td><td class='right'>");
      if (info->binary) {
-        htmlf("bin</td><td class='graph'>%ld -> %ld bytes",
+        htmlf("bin</td><td class='graph'>%ld -> %ld bytes</td></tr>",
                info->old_size, info->new_size);
          return;
      }
@@ -314,7 +314,7 @@ void cgit_print_diff_ctrls()
      html("<b>diff options</b>");
      html("<form method='get' action='.'><p>");
      cgit_add_hidden_formfields(1, 0, ctx.qry.page);
-    html("<table>");
+    html("</p><table>");
      html("<tr><td colspan='2'/></tr>");
      html("<tr>");
      html("<td class='label'>context:</td>");
@@ -346,9 +346,9 @@ void cgit_print_diff_ctrls()
      html_intoption(1, "ssdiff", curr);
      html("</select></td></tr>");
      html("<tr><td/><td class='ctrl'>");
-    html("<noscript><input type='submit' value='reload'/></noscript>");
+    html("<noscript><p><input type='submit' 
value='reload'/></p></noscript>");
      html("</td></tr></table>");
-    html("</p></form>");
+    html("</form>");
      html("</div>");
  }

-- 
1.7.9.5





More information about the CGit mailing list