]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] added a few missing newlines to the HTML report
authorWilly Tarreau <w@1wt.eu>
Sun, 25 Mar 2007 20:44:08 +0000 (22:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 25 Mar 2007 20:44:08 +0000 (22:44 +0200)
Sometimes it is preferable that the HTML output can be parsed.
Ensure better use of the newlines for this.

src/proto_http.c

index 164e31c2b87e1fe1741eb142a269124b0076a872..d0eeb564de112c43de8cbeb74224e732d3bf79d0 100644 (file)
@@ -3178,7 +3178,7 @@ int produce_content_stats(struct session *s)
                             "th,td {"
                             " font-size: 0.8em;"
                             " align: center;"
-                            "}"
+                            "}\n"
                             "h1 {"
                             " font-size: xx-large;"
                             " margin-bottom: 0.5em;"
@@ -3231,8 +3231,8 @@ int produce_content_stats(struct session *s)
                             "table.lgd { border-collapse: collapse; border-width: 1px; border-style: none none none solid; border-color: black;}\n"
                             "table.lgd td { border-width: 1px; border-style: solid solid solid solid; border-color: gray; padding: 2px;}\n"
                             "table.lgd td.noborder { border-style: none; padding: 2px; white-space: nowrap;}\n"
-                            "-->"
-                            "</style></head>");
+                            "-->\n"
+                            "</style></head>\n");
                        
                if (buffer_write_chunk(rep, &msg) != 0)
                        return 0;
@@ -3260,25 +3260,25 @@ int produce_content_stats(struct session *s)
                             "<b>maxsock = </b> %d<br>\n"
                             "<b>maxconn = </b> %d (current conns = %d)<br>\n"
                             "</td><td align=\"center\" nowrap>\n"
-                            "<table class=\"lgd\"><tr>"
+                            "<table class=\"lgd\"><tr>\n"
                             "<td class=\"active3\">&nbsp;</td><td class=\"noborder\">active UP </td>"
                             "<td class=\"backup3\">&nbsp;</td><td class=\"noborder\">backup UP </td>"
-                            "</tr><tr>"
+                            "</tr><tr>\n"
                             "<td class=\"active2\"></td><td class=\"noborder\">active UP, going down </td>"
                             "<td class=\"backup2\"></td><td class=\"noborder\">backup UP, going down </td>"
-                            "</tr><tr>"
+                            "</tr><tr>\n"
                             "<td class=\"active1\"></td><td class=\"noborder\">active DOWN, going up </td>"
                             "<td class=\"backup1\"></td><td class=\"noborder\">backup DOWN, going up </td>"
-                            "</tr><tr>"
+                            "</tr><tr>\n"
                             "<td class=\"active0\"></td><td class=\"noborder\">active or backup DOWN &nbsp;</td>"
                             "<td class=\"active4\"></td><td class=\"noborder\">not checked </td>"
                             "</tr></table>\n"
                             "</td>"
                             "<td align=\"left\" nowrap width=\"1%%\">"
-                            "<b>External ressources:</b><ul style=\"margin-top: 0.25em;\">"
-                            "<li><a href=\"" PRODUCT_URL "\">Primary site</a><br>"
-                            "<li><a href=\"" PRODUCT_URL_UPD "\">Updates (v" PRODUCT_BRANCH ")</a><br>"
-                            "<li><a href=\"" PRODUCT_URL_DOC "\">Online manual</a><br>"
+                            "<b>External ressources:</b><ul style=\"margin-top: 0.25em;\">\n"
+                            "<li><a href=\"" PRODUCT_URL "\">Primary site</a><br>\n"
+                            "<li><a href=\"" PRODUCT_URL_UPD "\">Updates (v" PRODUCT_BRANCH ")</a><br>\n"
+                            "<li><a href=\"" PRODUCT_URL_DOC "\">Online manual</a><br>\n"
                             "</ul>"
                             "</td>"
                             "</tr></table>\n"