=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.81 retrieving revision 1.83 diff -u -p -r1.81 -r1.83 --- mandoc/term.c 2009/06/22 12:04:05 1.81 +++ mandoc/term.c 2009/06/22 13:13:10 1.83 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.81 2009/06/22 12:04:05 kristaps Exp $ */ +/* $Id: term.c,v 1.83 2009/06/22 13:13:10 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -200,6 +200,9 @@ term_isopendelim(const char *p, int len) * Otherwise, the line will break at the right margin. Extremely long * lines will cause the system to emit a warning (TODO: hyphenate, if * possible). + * + * FIXME: newline breaks occur (in groff) also occur when a single + * space follows a NOBREAK! */ void term_flushln(struct termp *p) @@ -410,7 +413,8 @@ term_nescape(struct termp *p, const char *word, size_t size_t sz; int i; - if ((rhs = term_a2ascii(p->symtab, word, len, &sz))) + rhs = term_a2ascii(p->symtab, word, len, &sz); + if (rhs) for (i = 0; i < (int)sz; i++) term_encodea(p, rhs[i]); }