summaryrefslogtreecommitdiff
path: root/sfeed_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_html.c')
-rw-r--r--sfeed_html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfeed_html.c b/sfeed_html.c
index 8f104b7..3afd18f 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -33,6 +33,7 @@ printfeed(FILE *fp, struct feed *f)
xmlencode(f->name, stdout);
fputs("</a></h2>\n", stdout);
}
+ fputs("<pre>\n", stdout);
while ((linelen = getline(&line, &linesize, fp)) > 0) {
if (line[linelen - 1] == '\n')
@@ -69,6 +70,7 @@ printfeed(FILE *fp, struct feed *f)
fputs("</u></b>", stdout);
fputs("\n", stdout);
}
+ fputs("</pre>\n", stdout);
}
int
@@ -103,7 +105,6 @@ main(int argc, char *argv[])
fputs("\t\t<div id=\"items\">\n", stdout);
else
fputs("\t\t<div id=\"items\" class=\"nosidebar\">\n", stdout);
- fputs("<pre>\n", stdout);
if (argc == 1) {
if (!(feeds[0] = calloc(1, sizeof(struct feed))))
@@ -126,7 +127,7 @@ main(int argc, char *argv[])
fclose(fp);
}
}
- fputs("</pre>\n</div>\n", stdout); /* div items */
+ fputs("</div>\n", stdout); /* div items */
if (showsidebar) {
fputs("\t<div id=\"sidebar\">\n\t\t<ul>\n", stdout);