diff options
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -720,11 +720,18 @@ man_deroff(char **dest, const struct man_node *n) return; } - /* Skip leading whitespace. */ - - for (cp = n->string; '\0' != *cp; cp++) - if (0 == isspace((unsigned char)*cp)) + /* Skip leading whitespace and escape sequences. */ + + cp = n->string; + while ('\0' != *cp) { + if ('\\' == *cp) { + cp++; + mandoc_escape((const char **)&cp, NULL, NULL); + } else if (isspace((unsigned char)*cp)) + cp++; + else break; + } /* Skip trailing whitespace. */ |