tasn pushed a commit to branch master.

commit 3e4c93bd838ba92b1fa7852c4510f733343e1611
Author: Tom Hacohen <[email protected]>
Date:   Wed May 15 17:20:00 2013 +0100

    Make the Exactness error report valid XHTML 1.0 Strict.
---
 src/bin/exactness.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/bin/exactness.c b/src/bin/exactness.c
index 9af42df..7ffb9e0 100644
--- a/src/bin/exactness.c
+++ b/src/bin/exactness.c
@@ -179,12 +179,13 @@ main(int argc, char *argv[])
         report_file = fopen(report_filename, "w+");
         printf("%s %p\n", report_filename, report_file);
         fprintf(report_file,
-              "<html><head><title>Exactness report</title></head><body>");
+              "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC 
\"-//W3C//DTD XHTML 1.0 Strict//EN\" 
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>"
+              "<html 
xmlns=\"http://www.w3.org/1999/xhtml\";><head><title>Exactness 
report</title></head><body>");
 
         if (exactness_ctx.errors)
           {
              fprintf(report_file,
-                   "<h1>Tests that failed execution:</h1><br/><ul>");
+                   "<h1>Tests that failed execution:</h1><ul>");
              Eina_List *itr;
              List_Entry *ent;
              printf("List of tests that failed execution:\n");
@@ -200,14 +201,14 @@ main(int argc, char *argv[])
         if (exactness_ctx.compare_errors)
           {
              fprintf(report_file,
-                   "<h1>Images that failed comparison: (Original, Current, 
Diff)</h1><br/><ul>");
+                   "<h1>Images that failed comparison: (Original, Current, 
Diff)</h1><ul>");
              char *test_name;
              printf("List of images that failed comparison:\n");
              EINA_LIST_FREE(exactness_ctx.compare_errors, test_name)
                {
                   printf("\t* %s\n", test_name);
 
-                  fprintf(report_file, "<li><h2>%s</h2> <img src='../orig/%s' 
/> <img src='%s' /> <img src='comp_%s' /></li>", test_name, test_name, 
test_name, test_name);
+                  fprintf(report_file, "<li><h2>%s</h2> <img src='../orig/%s' 
alt='Original' /> <img src='%s' alt='Current' /> <img src='comp_%s' alt='Diff' 
/></li>", test_name, test_name, test_name, test_name);
                   free(test_name);
                }
              fprintf(report_file, "</ul>");

-- 

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d

Reply via email to