From cffa282033b8a943e1a85741c8505db4939b495f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 20 Oct 2014 02:46:01 +0000 Subject: correct spacing *after* inline equations (much simpler than expected) --- usr.bin/mandoc/man_term.c | 4 +++- usr.bin/mandoc/mdoc_term.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 12fc5e6d6bd..32f391d4522 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.105 2014/10/20 02:31:44 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.106 2014/10/20 02:46:00 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -988,6 +988,8 @@ print_man_node(DECL_ARGS) if ( ! (n->flags & MAN_LINE)) p->flags |= TERMP_NOSPACE; term_eqn(p, n->eqn); + if ( ! (n->flags & MAN_LINE)) + p->flags |= TERMP_NOSPACE; return; case MAN_TBL: /* diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 60878c964b9..ee8756fb558 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_term.c,v 1.183 2014/10/20 02:31:44 schwarze Exp $ */ +/* $OpenBSD: mdoc_term.c,v 1.184 2014/10/20 02:46:00 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze @@ -345,6 +345,8 @@ print_mdoc_node(DECL_ARGS) if ( ! (n->flags & MDOC_LINE)) p->flags |= TERMP_NOSPACE; term_eqn(p, n->eqn); + if ( ! (n->flags & MDOC_LINE)) + p->flags |= TERMP_NOSPACE; break; case MDOC_TBL: term_tbl(p, n->span); -- cgit v1.2.3