aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_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
commit7881c2f8ae736bd068a654503612ac7b0e12a24f (patch)
tree96074f27c5f062010cf24a0d49750a3c4506a722 /man_term.c
parent3ec112fadb4e9471c3f9de8c109a8f499000dae4 (diff)
downloadmandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.tar.gz
mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.tar.zst
mandoc-7881c2f8ae736bd068a654503612ac7b0e12a24f.zip
correct spacing before inline equations
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 3057d326..7153a074 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.151 2014/09/03 05:22:45 schwarze Exp $ */
+/* $Id: man_term.c,v 1.152 2014/10/20 02:33:06 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -987,6 +987,8 @@ print_man_node(DECL_ARGS)
goto out;
case MAN_EQN:
+ if ( ! (n->flags & MAN_LINE))
+ p->flags |= TERMP_NOSPACE;
term_eqn(p, n->eqn);
return;
case MAN_TBL: