X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/02046d75d7ec4c27ec31d04e15c9d9fe018a01ab..022b8bdab4bc87d590cb930db853e246e42e46ae:/man_term.c diff --git a/man_term.c b/man_term.c index 3057d326..790d3135 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.151 2014/09/03 05:22:45 schwarze Exp $ */ +/* $Id: man_term.c,v 1.155 2014/10/28 17:36:19 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -151,9 +151,6 @@ terminal_man(void *arg, const struct man *man) p->rmargin = p->maxrmargin = p->defrmargin; p->tabwidth = term_len(p, 5); - if (NULL == p->symtab) - p->symtab = mchars_alloc(); - n = man_node(man)->child; meta = man_meta(man); @@ -987,7 +984,11 @@ print_man_node(DECL_ARGS) goto out; case MAN_EQN: + if ( ! (n->flags & MAN_LINE)) + p->flags |= TERMP_NOSPACE; term_eqn(p, n->eqn); + if (n->next != NULL && ! (n->next->flags & MAN_LINE)) + p->flags |= TERMP_NOSPACE; return; case MAN_TBL: /*