removed useless files
[ppastats.git] / src / html.c
index 8a12524..a471665 100644 (file)
@@ -88,7 +88,7 @@ static char *get_header(const char *title, const char *script)
 
        if (res != tmp)
                free(tmp);
-       
+
        return res;
 }
 
@@ -470,22 +470,20 @@ version_to_html(struct ppa_stats *ppa,
                return ;
        }
 
-
        f_name = malloc(strlen(pkg->name)+1+strlen(version->version)+1);
        sprintf(f_name, "%s_%s", pkg->name, version->version);
 
        path = path_new(dir, f_name, ".html");
 
        script_tpl = "var data = %s;\n ppastats_ver();";
-       script = malloc(strlen(script_tpl) - 2 +strlen(json) + 1);
+       script = malloc(strlen(script_tpl) - 2 + strlen(json) + 1);
        sprintf(script, script_tpl, json);
-       
+
        create_html(path, f_name, body, script);
-                       
+
        free(json);
        free(path);
        free(f_name);
-
 }
 
 static void