summaryrefslogtreecommitdiffstats
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
commitf1689f618aeb4d82318224898f0df3ba12ebe25c (patch)
treeffd7ab1a06895ddae5281341907f638e621e3ad5
parent92a2c903373c2aae7aa1d0c680626b21f4011848 (diff)
downloadmandoc-f1689f618aeb4d82318224898f0df3ba12ebe25c.tar.gz
correct spacing *after* inline equations (much simpler than expected)
-rw-r--r--man_term.c2
-rw-r--r--mdoc_term.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/man_term.c b/man_term.c
index 9329fbba..19ab14af 100644
--- a/man_term.c
+++ b/man_term.c
@@ -990,6 +990,8 @@ print_man_node(DECL_ARGS)
if ( ! (n->flags & MAN_LINE))
p->flags |= TERMP_NOSPACE;
term_eqn(p, n->eqn);
+ if ( ! (n->flags & MAN_LINE))
+ p->flags |= TERMP_NOSPACE;
return;
case MAN_TBL:
/*
diff --git a/mdoc_term.c b/mdoc_term.c
index 2ca44541..4b7ca183 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -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);