aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-10-20 02:47:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-10-20 02:47:09 +0000
commit98c6167b59fb204a6d54d4e69c1dceb76a46e91b (patch)
treebeaec008ed365326becd614d0647b197603f9adc /mdoc_term.c
parent7881c2f8ae736bd068a654503612ac7b0e12a24f (diff)
downloadmandoc-98c6167b59fb204a6d54d4e69c1dceb76a46e91b.tar.gz
mandoc-98c6167b59fb204a6d54d4e69c1dceb76a46e91b.tar.zst
mandoc-98c6167b59fb204a6d54d4e69c1dceb76a46e91b.zip
correct spacing *after* inline equations (much simpler than expected)
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c4
1 files changed, 3 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);