don't remove comments when -n is set.

This commit is contained in:
Enno Boland (Gottox) 2008-07-01 22:10:40 +02:00
parent 5fff5fdbe8
commit cf7d7b62f2

2
smu.c
View file

@ -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)