smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit bce9fd9ebae59863608abd0218422913bd69235a
parent fea415180a6c626081610ed868ef13e2fd874413
Author: gottox@rootkit.lan <gottox@rootkit.lan>
Date:   Thu, 13 Dec 2007 13:44:42 +0100

newline stripping works again

Diffstat:
Mcmarkdown.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmarkdown.c b/cmarkdown.c @@ -468,8 +468,8 @@ process(const char *begin, const char *end) { if(affected) p += affected; else { - for(q = p; *q == '\n' && q != end; q++); - if(q == end) + for(q = p; *q && *q == '\n' && q != end; q++); + if(q == end || !*q) return; else if(nohtml) hprint(p,p+1);