summaryrefslogtreecommitdiffstats
path: root/mdoc_term.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
commit92a2c903373c2aae7aa1d0c680626b21f4011848 (patch)
treeafd8be1ad2fcc51a65fd23aef90e97b6eb0386e3 /mdoc_term.c
parent1ef973217e594b4c3a9888b786a447856f0de8db (diff)
downloadmandoc-92a2c903373c2aae7aa1d0c680626b21f4011848.tar.gz
correct spacing before inline equations
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index a7266724..2ca44541 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -344,6 +344,8 @@ print_mdoc_node(DECL_ARGS)
p->flags |= TERMP_NOSPACE;
break;
case MDOC_EQN:
+ if ( ! (n->flags & MDOC_LINE))
+ p->flags |= TERMP_NOSPACE;
term_eqn(p, n->eqn);
break;
case MDOC_TBL: