Mercurial > blahgd
changeset 32:bd3715c51969
post: if only one \n was found, go back to ECHO state
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 05 Feb 2009 16:53:55 -0500 |
parents | c7b4f3cb6de8 |
children | ab4cc2b2e7ff |
files | post.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/post.c Thu Feb 05 16:45:10 2009 -0500 +++ b/post.c Thu Feb 05 16:53:55 2009 -0500 @@ -63,6 +63,9 @@ for(eidx = sidx = 0; eidx < len; eidx++) { tmp = ibuf[eidx]; +#if 0 + printf("\n|'%c' %d| ",tmp, state); +#endif switch(state) { case CATP_SKIP: @@ -85,7 +88,8 @@ fwrite("</p>\n", 1, 5, post->out); sidx = eidx+1; state = CATP_SKIP; - } + } else + state = CATP_ECHO; break; }