summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-19 02:25:03 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-19 02:25:03 +1030
commit04a44898f01fc8c30aba7e69b8f38b4bba30ec12 (patch)
treedbe2c17be355bc33465f664f06a47f508fa42ea9
parentdfecea539fe2c2adc847f71cae0a3d1d59bead1c (diff)
downloadwebsitegenerator-04a44898f01fc8c30aba7e69b8f38b4bba30ec12.tar.gz
websitegenerator-04a44898f01fc8c30aba7e69b8f38b4bba30ec12.zip
rss: fix description generation
-rw-r--r--pages.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/pages.c b/pages.c
index b84caac..4681eef 100644
--- a/pages.c
+++ b/pages.c
@@ -846,18 +846,18 @@ writerss(FILE *out, int post)
fclose(in);
return 0;
}
- else if (pos >= 3)
+ else if (pos == 3)
{
strncpy(description, line, 100);
+ }
- /* try to find images */
- char *img;
- if ((img = strstr(line, "<img")))
- {
- hasimg = 1;
- getimage(img, image, 1024);
- break;
- }
+ /* try to find images */
+ char *img;
+ if ((img = strstr(line, "<img")))
+ {
+ hasimg = 1;
+ getimage(img, image, 1024);
+ break;
}
pos++;
}