summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnno Boland (Gottox) <gottox@s01.de>2008-07-01 22:10:40 +0200
committerEnno Boland (Gottox) <gottox@s01.de>2008-07-01 22:10:40 +0200
commitcf7d7b62f29ffcc61fd4105b35e781933e1d46ac (patch)
tree1a866a9a2c470f31dbb2cd21f021d012ded5e634
parent5fff5fdbe80372d2f79ce2b0d6324f5a1e39aeeb (diff)
don't remove comments when -n is set.
-rw-r--r--smu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smu.c b/smu.c
index 81dd80a..bd31f2a 100644
--- 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)