From 98c6167b59fb204a6d54d4e69c1dceb76a46e91b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 20 Oct 2014 02:47:09 +0000 Subject: correct spacing *after* inline equations (much simpler than expected) --- man_term.c | 4 +++- mdoc_term.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/man_term.c b/man_term.c index 7153a074..99a18170 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.152 2014/10/20 02:33:06 schwarze Exp $ */ +/* $Id: man_term.c,v 1.153 2014/10/20 02:47:09 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -990,6 +990,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/mdoc_term.c b/mdoc_term.c index ee36533f..6c900e55 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.284 2014/10/20 02:33:06 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.285 2014/10/20 02:47:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze @@ -347,6 +347,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