diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-18 01:49:06 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-18 01:49:06 +1030 |
commit | 71ec9cb679afb648fac76e7763b96def1f290c22 (patch) | |
tree | be2d2f0e2bcecd824748a9ed16ca8465dd2862ba | |
parent | 73954921146ba51f4a3f7be96261c684ebe89c0e (diff) | |
download | websitegenerator-71ec9cb679afb648fac76e7763b96def1f290c22.tar.gz websitegenerator-71ec9cb679afb648fac76e7763b96def1f290c22.zip |
pretty sure we should be checking for \n here
-rw-r--r-- | pages.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -800,7 +800,7 @@ writerss(FILE *out, int post) strncpy(date, line, 512); } - if (pos >= 2 && (title[0] == 0 || date[0] == 0)) + if (pos >= 2 && (title[0] == '\n' || date[0] == '\n')) { fprintf(stderr, "post %s has a broken format, please fix it\n", buff); fclose(in); |