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:
M | cmarkdown.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);