=================================================================== RCS file: /cvs/mandoc/man_term.c,v retrieving revision 1.173 retrieving revision 1.174 diff -u -p -r1.173 -r1.174 --- mandoc/man_term.c 2015/04/02 23:48:19 1.173 +++ mandoc/man_term.c 2015/04/04 11:44:43 1.174 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.173 2015/04/02 23:48:19 schwarze Exp $ */ +/* $Id: man_term.c,v 1.174 2015/04/04 11:44:43 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -533,6 +533,17 @@ post_HP(DECL_ARGS) switch (n->type) { case ROFFT_BODY: term_newln(p); + + /* + * Compatibility with a groff bug. + * The .HP macro uses the undocumented .tag request + * which causes a line break and cancels no-space + * mode even if there isn't any output. + */ + + if (n->child == NULL) + term_vspace(p); + p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND); p->trailspace = 0; p->offset = mt->offset;