summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-24 12:52:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-24 12:52:28 +0000
commitcca4624d7bc6e6b314290cb184a95eea16e8f8f1 (patch)
tree45454301d6d099c280202b8fbd0fffe3bb562e60 /mdoc_term.c
parent6779c75691e16ecca6754a889718ea84ae6663d5 (diff)
downloadmandoc-cca4624d7bc6e6b314290cb184a95eea16e8f8f1.tar.gz
Fixed DIAGNOSTIC display (leading double-space only before BODY).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index f3e00a1f..6cba2d38 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -858,7 +858,8 @@ termp_it_pre(DECL_ARGS)
switch (type) {
case (MDOC_Diag):
- term_word(p, "\\ \\ ");
+ if (MDOC_BODY == node->type)
+ term_word(p, "\\ \\ ");
break;
case (MDOC_Inset):
if (MDOC_BODY == node->type)