summaryrefslogtreecommitdiff
path: root/sfeed_frames.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-16 19:31:46 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-16 19:31:46 +0200
commit3946a701c0d409dd235f2bcb564b5701beb7d775 (patch)
tree1b9a3cc10ac6a269d81be4d543cd13201ae46949 /sfeed_frames.c
parent42a1ceb58acc58ade796fa66eeed4bd8fd5901ec (diff)
code-style, wrap some lines, etc
Diffstat (limited to 'sfeed_frames.c')
-rw-r--r--sfeed_frames.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 70c531d..302dd13 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -148,21 +148,22 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f)
if (r == -1 || (size_t)r >= sizeof(filepath))
errx(1, "snprintf: path truncation");
- /* file doesn't exist yet and has write access */
+ /* content file doesn't exist yet and has write access */
if (access(filepath, F_OK) != 0) {
if (!(fpcontent = fopen(filepath, "w+b")))
err(1, "fopen: %s", filepath);
- fputs("<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"../../style.css\" />"
- "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /></head>\n"
- "<body class=\"frame\"><div class=\"content\">"
- "<h2><a href=\"", fpcontent);
+ fputs("<html><head>"
+ "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style.css\" />"
+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
+ "</head>\n<body class=\"frame\">"
+ "<div class=\"content\"><h2><a href=\"", fpcontent);
xmlencode(fields[FieldLink], fpcontent);
fputs("\">", fpcontent);
xmlencode(fields[FieldTitle], fpcontent);
fputs("</a></h2>", fpcontent);
/* NOTE: this prints the raw HTML of the feed, this is
- * potentially dangerous, it is up to the user / browser
- * to trust a feed it's HTML content. */
+ * potentially dangerous, it is left up to the
+ * user / browser to trust a feed it's HTML content. */
if (!strcmp(fields[FieldContentType], "html")) {
printcontent(fields[FieldContent], fpcontent);
} else {