aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-04 16:12:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-04 16:12:08 +0000
commit50b8b4d12d3828eef15079704fdc9586de75c7ef (patch)
tree3e223cee342e42199f2de9b6bcbb50544b658366 /mdoc_man.c
parent977b1ebb8e08cb6933cea2f78ab50687dcd69da7 (diff)
downloadmandoc-50b8b4d12d3828eef15079704fdc9586de75c7ef.tar.gz
mandoc-50b8b4d12d3828eef15079704fdc9586de75c7ef.tar.zst
mandoc-50b8b4d12d3828eef15079704fdc9586de75c7ef.zip
Clean up messages regarding excess arguments:
* Downgrade ".Bf -emphasis Em" from FATAL to WARNING. * Mention the macros, the arguments, and the fallbacks. * Hierarchical naming.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index b6362f46..0482fb7f 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_man.c,v 1.65 2014/07/02 19:55:10 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.66 2014/07/04 16:12:08 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -1308,17 +1308,20 @@ pre_it(DECL_ARGS)
else
print_word("-");
font_pop();
- break;
+ outflags |= MMAN_nl;
+ return(0);
case LIST_enum:
print_width(bln->norm->Bl.width, NULL, 0);
TPremain = 0;
outflags |= MMAN_nl;
print_count(&bln->norm->Bl.count);
- break;
+ outflags |= MMAN_nl;
+ return(0);
case LIST_hang:
print_width(bln->norm->Bl.width, n->child, 6);
TPremain = 0;
- break;
+ outflags |= MMAN_nl;
+ return(1);
case LIST_tag:
print_width(bln->norm->Bl.width, n->child, 0);
putchar('\n');
@@ -1327,7 +1330,6 @@ pre_it(DECL_ARGS)
default:
return(1);
}
- outflags |= MMAN_nl;
default:
break;
}