summaryrefslogtreecommitdiffstatshomepage
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
commite4c623988c72af17d3782b47c6c27677a1b1823d (patch)
treef484b13211cc0c24bfeabe7842b36bc11b083884
parent53c9730eb10a427664cfb081d0093a0b61dce90b (diff)
downloadmandoc-e4c623988c72af17d3782b47c6c27677a1b1823d.tar.gz
mandoc-e4c623988c72af17d3782b47c6c27677a1b1823d.tar.zst
mandoc-e4c623988c72af17d3782b47c6c27677a1b1823d.zip
Fixed DIAGNOSTIC display (leading double-space only before BODY).
-rw-r--r--mdoc_term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 33e37f05..0a4ee37c 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.61 2009/07/24 12:47:35 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.62 2009/07/24 12:52:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)