changeset 23:f0dbfa85ce14

story: display the entire text don't skip the last paragraph
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Wed, 04 Feb 2009 16:29:43 -0500
parents 71493f7ab51d
children 692da6202633
files post.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/post.c	Wed Feb 04 16:26:14 2009 -0500
+++ b/post.c	Wed Feb 04 16:29:43 2009 -0500
@@ -89,6 +89,11 @@
 
 		}
 	}
+
+	if (state != CATP_SKIP) {
+		fwrite(ibuf+sidx, 1, eidx-sidx, post->out);
+		fwrite("</p>", 1, 4, post->out);
+	}
 }
 
 void cat_post(struct post *post)