aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-20 02:33:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-20 02:33:06 +0000
commit7881c2f8ae736bd068a654503612ac7b0e12a24f (patch)
tree96074f27c5f062010cf24a0d49750a3c4506a722 /man.c
parent3ec112fadb4e9471c3f9de8c109a8f499000dae4 (diff)
downloadmandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.tar.gz
mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.tar.zst
mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.zip
correct spacing before inline equations
Diffstat (limited to 'man.c')
-rw-r--r--man.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man.c b/man.c
index ef6a2c35..849ee7c0 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.139 2014/09/06 23:24:32 schwarze Exp $ */
+/* $Id: man.c,v 1.140 2014/10/20 02:33:06 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -345,6 +345,8 @@ man_addeqn(struct man *man, const struct eqn *ep)
n = man_node_alloc(man, ep->ln, ep->pos, MAN_EQN, MAN_MAX);
n->eqn = ep;
+ if (ep->ln > man->last->line)
+ n->flags |= MAN_LINE;
if ( ! man_node_append(man, n))
return(0);