diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-20 02:33:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-20 02:33:06 +0000 |
commit | 7881c2f8ae736bd068a654503612ac7b0e12a24f (patch) | |
tree | 96074f27c5f062010cf24a0d49750a3c4506a722 /mdoc.c | |
parent | 3ec112fadb4e9471c3f9de8c109a8f499000dae4 (diff) | |
download | mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.tar.gz mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.tar.zst mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.zip |
correct spacing before inline equations
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.226 2014/10/16 01:11:20 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.227 2014/10/20 02:33:06 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -205,6 +205,8 @@ mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep) n = node_alloc(mdoc, ep->ln, ep->pos, MDOC_MAX, MDOC_EQN); n->eqn = ep; + if (ep->ln > mdoc->last->line) + n->flags |= MDOC_LINE; if ( ! node_append(mdoc, n)) return(0); |