=================================================================== RCS file: /cvs/mandoc/man.c,v retrieving revision 1.126 retrieving revision 1.128 diff -u -p -r1.126 -r1.128 --- mandoc/man.c 2014/03/23 12:26:58 1.126 +++ mandoc/man.c 2014/03/30 19:47:48 1.128 @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.126 2014/03/23 12:26:58 schwarze Exp $ */ +/* $Id: man.c,v 1.128 2014/03/30 19:47:48 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -45,7 +45,7 @@ const char *const __man_macronames[MAN_MAX] = { "fi", "RE", "RS", "DT", "UC", "PD", "AT", "in", "ft", "OP", "EX", "EE", - "UR", "UE" + "UR", "UE", "ll" }; const char * const *man_macronames = __man_macronames; @@ -720,11 +720,18 @@ man_deroff(char **dest, const struct man_node *n) return; } - /* Skip leading whitespace. */ + /* Skip leading whitespace and escape sequences. */ - for (cp = n->string; '\0' != *cp; cp++) - if (0 == isspace((unsigned char)*cp)) + 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. */