httpinfo: split table start and nodeId
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 13 Jul 2012 15:29:08 +0000 (17:29 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 13 Jul 2012 15:35:29 +0000 (17:35 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/httpinfo/src/olsrd_httpinfo.c

index d676212..26bfcf9 100644 (file)
@@ -1195,9 +1195,12 @@ static void build_pud_body(struct autobuf *abuf) {
        }
 
        /* start of table */
-       abuf_appendf(abuf,
+       abuf_puts(abuf,
                "<p><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
                "<tr><th>Parameter</th><th>&nbsp;&nbsp;</th><th>Unit</th><th>&nbsp;&nbsp;</th><th>Value</th></tr>\n"
+       );
+
+       abuf_appendf(abuf,
                "<tr><td>Name</td><td></td><td></td><td></td><td id=\"nodeId\">%s</td></tr>\n",
                nodeId
        );