don't remove comments when -n is set. - smu - smu - simple markup (Markdown) pr… | |
git clone git://git.codemadness.org/smu | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit cf7d7b62f29ffcc61fd4105b35e781933e1d46ac | |
parent 5fff5fdbe80372d2f79ce2b0d6324f5a1e39aeeb | |
Author: Enno Boland (Gottox) <[email protected]> | |
Date: Tue, 1 Jul 2008 22:10:40 +0200 | |
don't remove comments when -n is set. | |
Diffstat: | |
M smu.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/smu.c b/smu.c | |
@@ -142,7 +142,7 @@ int | |
docomment(const char *begin, const char *end, int newblock) { | |
char *p; | |
- if(strncmp("<!--", begin, 4)) | |
+ if(nohtml || strncmp("<!--", begin, 4)) | |
return 0; | |
p = strstr(begin, "-->"); | |
if(!p || p + 3 >= end) |