From 3946a701c0d409dd235f2bcb564b5701beb7d775 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 16 Aug 2015 19:31:46 +0200 Subject: code-style, wrap some lines, etc --- sfeed_frames.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'sfeed_frames.c') 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("" - "\n" - "
" - "

" + "" + "" + "\n" + "

", fpcontent); xmlencode(fields[FieldTitle], fpcontent); fputs("

", 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 { -- cgit v1.2.3