Hello there,

the HTML template in "build-aux/pmccabe2html" contains
two erroneous tags. Mending them allows Lynx to render
the resulting page, at least for Shishi. Patch included.

Best regards,
  Mats Erik Andersson, on behalf of Shishi.
>From 5eac6d23d1aa5ae8b658e75e721674e201910130 Mon Sep 17 00:00:00 2001
From: Mats Erik Andersson <g...@gisladisker.se>
Date: Sun, 15 Sep 2013 16:21:45 +0200
Subject: [PATCH] pmccabe2html: Tagging error in HTML template.

Two erroneous tags prevented lynx to render the page.
One is doubly marking the end "</style />", the other
was misnamed, needing a tag "span".
---
 ChangeLog              | 5 +++++
 build-aux/pmccabe2html | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0007e17..6213d84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-15  Mats Erik Andersson <g...@gisladisker.se>
+
+	* build-aux/pmccabe2html: Fix two tag errors, each of
+	which invalidates the resulting HTML source.
+
 2013-09-09  Eric Blake  <ebl...@redhat.com>
 
 	glob: fix compilation
diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html
index 863c73e..6ac7530 100644
--- a/build-aux/pmccabe2html
+++ b/build-aux/pmccabe2html
@@ -211,7 +211,7 @@ function html_header ()
 	    print cssline
 	}
         print "-->"
-	print "</style />"
+	print "</style>"
 	close(css)
     }
     print "</head>"
@@ -852,7 +852,7 @@ END {
     if (output_lang == "html")
     {
         print "<div class=\"page_title\">" package_name " Cyclomatic Complexity Report</div>"
-        print "<p>Report generated at: <span class=\"report_timestamp\">" strftime() "</div></p>"
+        print "<p>Report generated at: <span class=\"report_timestamp\">" strftime() "</span></p>"
     }
     if (output_lang == "wiki")
     {
-- 
1.8.4.rc3

Reply via email to