aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-20 15:50:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-20 15:50:24 +0000
commit6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b (patch)
tree9733b01377c29fa3b76767daf7b1169444642f93 /man_term.c
parent9ca091cc5ecb093aa0d5e331700589d10e6f07e5 (diff)
downloadmandoc-6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b.tar.gz
mandoc-6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b.tar.zst
mandoc-6e74e86e44514ebe15ac91e3d2d8aa05b8fdf34b.zip
correct the spacing after in-line equations
that start at the beginning of an input line but end before the end of an input line
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index 99a18170..ab288858 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.153 2014/10/20 02:47:09 schwarze Exp $ */
+/* $Id: man_term.c,v 1.154 2014/10/20 15:50:24 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -990,7 +990,7 @@ print_man_node(DECL_ARGS)
if ( ! (n->flags & MAN_LINE))
p->flags |= TERMP_NOSPACE;
term_eqn(p, n->eqn);
- if ( ! (n->flags & MAN_LINE))
+ if (n->next != NULL && ! (n->next->flags & MAN_LINE))
p->flags |= TERMP_NOSPACE;
return;
case MAN_TBL: