improved output
[ppastats.git] / src / html.c
index fb4dac1..786ea98 100644 (file)
@@ -20,6 +20,7 @@
 #include <string.h>
 
 #include "html.h"
+#include "list.h"
 #include "lp_ws.h"
 
 #include <json/json.h>
@@ -30,7 +31,8 @@
 #define HTML_TEMPLATE \
 "<html>\n\
   <head>\n\
-    <script type='text/javascript' src='https://www.google.com/jsapi'></script>\n\
+    <script type='text/javascript'\
+           src='https://www.google.com/jsapi'></script>\n\
     <script type='text/javascript'>\n\
       google.load('visualization', '1', {packages:['corechart']});\
       google.setOnLoadCallback(drawChart);\n\
 %s\
        data.addRows(%s);\n\
        data.sort(0);\n\
-        var chart = new google.visualization.LineChart(document.getElementById('chart_div'));\n\
-       chart.draw(data, {width: 1024, height: 768, title: 'PPA Statistics'});\n\
+       var chart = new google.visualization.LineChart\
+               (document.getElementById('chart_div'));\n\
+       chart.draw(data, {width: 1024, height: 768,\
+                         title: 'PPA Statistics'});\n\
       }\n\
     </script>\n\
   </head>\n\