=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.175 retrieving revision 1.176 diff -u -p -r1.175 -r1.176 --- mandoc/term.c 2010/12/06 13:25:25 1.175 +++ mandoc/term.c 2011/01/04 13:14:26 1.176 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.175 2010/12/06 13:25:25 kristaps Exp $ */ +/* $Id: term.c,v 1.176 2011/01/04 13:14:26 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -677,6 +677,12 @@ term_strlen(const struct termp *p, const char *cp) if (rhs) for (i = 0; i < rsz; i++) sz += (*p->width)(p, *rhs++); + } else if (ASCII_NBRSP == *cp) { + sz += (*p->width)(p, ' '); + cp++; + } else if (ASCII_HYPH == *cp) { + sz += (*p->width)(p, '-'); + cp++; } else sz += (*p->width)(p, *cp++);