diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-04-05 22:22:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-04-05 22:22:33 +0000 |
commit | efc9d46da492571c565d083e947aea288dafb2d4 (patch) | |
tree | 0cf9905627db984531d52c821b43c7d35cd7672b /roff.c | |
parent | c73e7b1e9e172c0f362a6145a6b377c517a5e289 (diff) | |
download | mandoc-efc9d46da492571c565d083e947aea288dafb2d4.tar.gz |
On .de macro lines, after the macro name, space and tab are equivalent.
Bug reported by Tristan dot LeGuern at gmail dot com in fvwm2(1).
tweaks and ok kristaps@; earlier version looked good to espie@ as well
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -739,10 +739,10 @@ roff_block(ROFF_ARGS) mandoc_msg(MANDOCERR_REQUEST, r->parse, ln, ppos, roffs[tok].name); - while ((*bufp)[pos] && ' ' != (*bufp)[pos]) + while ((*bufp)[pos] && ! isspace((unsigned char)(*bufp)[pos])) pos++; - while (' ' == (*bufp)[pos]) + while (isspace((unsigned char)(*bufp)[pos])) (*bufp)[pos++] = '\0'; } @@ -763,9 +763,7 @@ roff_block(ROFF_ARGS) /* If present, process the custom end-of-line marker. */ sv = pos; - while ((*bufp)[pos] && - ' ' != (*bufp)[pos] && - '\t' != (*bufp)[pos]) + while ((*bufp)[pos] && ! isspace((unsigned char)(*bufp)[pos])) pos++; /* |