aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-30 19:04:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-30 19:04:16 +0000
commitfc07bd4ebdd99fc6e88a9e48d44eae67c93f0b24 (patch)
treef2c792a331013989c5a5314c9567b9ca77876366 /read.c
parent86f7c723953672d317bade10fa45e919e6bec8ff (diff)
downloadmandoc-fc07bd4ebdd99fc6e88a9e48d44eae67c93f0b24.tar.gz
mandoc-fc07bd4ebdd99fc6e88a9e48d44eae67c93f0b24.tar.zst
mandoc-fc07bd4ebdd99fc6e88a9e48d44eae67c93f0b24.zip
If a .Bd block has no arguments at all, drop the block and only keep
its contents. Removing a gratuitious difference to groff output found after a related bug report from krw@.
Diffstat (limited to 'read.c')
-rw-r--r--read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.c b/read.c
index 13b25778..96c7ac53 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.144 2015/10/13 22:59:54 schwarze Exp $ */
+/* $Id: read.c,v 1.145 2015/10/30 19:04:16 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -215,6 +215,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
/* related to request and macro arguments */
"escaped character not allowed in a name",
"NOT IMPLEMENTED: Bd -file",
+ "skipping display without arguments",
"missing list type, using -item",
"missing manual name, using \"\"",
"uname(3) system call failed, using UNKNOWN",