aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
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 /mandoc.1
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 'mandoc.1')
-rw-r--r--mandoc.111
1 files changed, 9 insertions, 2 deletions
diff --git a/mandoc.1 b/mandoc.1
index 72f8b2a6..90e2b5d3 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.162 2015/10/06 15:33:29 schwarze Exp $
+.\" $Id: mandoc.1,v 1.163 2015/10/30 19:04:16 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 6 2015 $
+.Dd $Mdocdate: October 30 2015 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -1600,6 +1600,13 @@ By requesting the inclusion of a sensitive file, a malicious document
might otherwise trick a privileged user into inadvertently displaying
the file on the screen, revealing the file content to bystanders.
The argument is ignored including the file name following it.
+.It Sy "skipping display without arguments"
+.Pq mdoc
+A
+.Ic \&Bd
+block macro does not have any arguments.
+The block is discarded, and the block content is displayed in
+whatever mode was active before the block.
.It Sy "missing list type, using -item"
.Pq mdoc
A