Return to mdoc_validate.c CVS log | Up to [local] / src / usr.bin / mandoc |
version 1.270, 2018/03/16 15:05:33 | version 1.271, 2018/03/16 20:41:19 | ||
---|---|---|---|
|
|
||
/* Look for em-dashes wrongly encoded as "--". */ | /* Look for em-dashes wrongly encoded as "--". */ | ||
for (cp = p; *cp != '\0'; cp++) { | for (cp = p; *cp != '\0'; cp++) { | ||
if (*cp != '-' || *++cp != '-') | if (cp[0] != '-' || cp[1] != '-') | ||
continue; | continue; | ||
cp++; | |||
/* Skip input sequences of more than two '-'. */ | /* Skip input sequences of more than two '-'. */ | ||