diff options
| author | gottox@rootkit.lan <gottox@rootkit.lan> | 2007-12-13 13:44:42 +0100 |
|---|---|---|
| committer | gottox@rootkit.lan <gottox@rootkit.lan> | 2007-12-13 13:44:42 +0100 |
| commit | bce9fd9ebae59863608abd0218422913bd69235a (patch) | |
| tree | 09a8513955bc06ccab9065ce1337b821c7870678 | |
| parent | fea415180a6c626081610ed868ef13e2fd874413 (diff) | |
newline stripping works again
| -rw-r--r-- | cmarkdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmarkdown.c b/cmarkdown.c index 9372430..86134aa 100644 --- 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); |