=================================================================== RCS file: /cvs/mandoc/Attic/mdocterm.c,v retrieving revision 1.18 retrieving revision 1.20 diff -u -p -r1.18 -r1.20 --- mandoc/Attic/mdocterm.c 2009/02/27 10:55:16 1.18 +++ mandoc/Attic/mdocterm.c 2009/02/28 20:13:06 1.20 @@ -1,4 +1,4 @@ -/* $Id: mdocterm.c,v 1.18 2009/02/27 10:55:16 kristaps Exp $ */ +/* $Id: mdocterm.c,v 1.20 2009/02/28 20:13:06 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -112,7 +112,7 @@ main(int argc, char *argv[]) if (NULL == (mdoc = mmain_mdoc(p))) mmain_exit(p, 1); - termp.maxrmargin = 80; /* XXX */ + termp.maxrmargin = 78; /* XXX */ termp.rmargin = termp.maxrmargin; termp.maxcols = 1024; termp.offset = termp.col = 0; @@ -554,7 +554,14 @@ word(struct termp *p, const char *word) if ( ! xisspace(word[i])) { j++; continue; + } + + /* Escaped spaces don't delimit... */ + if (i > 0 && xisspace(word[i]) && '\\' == word[i - 1]) { + j++; + continue; } + if (0 == j) continue; assert(i >= j);