aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-29 15:22:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-29 15:22:17 +0000
commit294cf32a27d430922b8f008f10b766ddce477cf6 (patch)
tree5d2f44c87d164c034525970057e994f303f21f89 /mandoc.1
parent7ce799ea42df955972ae7d0c05eeb330a9864345 (diff)
downloadmandoc-294cf32a27d430922b8f008f10b766ddce477cf6.tar.gz
mandoc-294cf32a27d430922b8f008f10b766ddce477cf6.tar.zst
mandoc-294cf32a27d430922b8f008f10b766ddce477cf6.zip
warn about some non-portable idioms in .Bl -column;
triggered by a question from Yuri Pankov (illumos)
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.121
1 files changed, 19 insertions, 2 deletions
diff --git a/mandoc.1 b/mandoc.1
index 7ac89ed9..5d59ba4f 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.208 2017/06/27 12:18:00 schwarze Exp $
+.\" $Id: mandoc.1,v 1.209 2017/06/29 15:22:17 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2017 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: June 27 2017 $
+.Dd $Mdocdate: June 29 2017 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -1218,6 +1218,12 @@ list block contains text or macros before the first
.Ic \&It
macro.
The offending children are moved before the beginning of the list.
+.It Sy "first macro on line"
+Inside a
+.Ic \&Bl Fl column
+list, a
+.Ic \&Ta
+macro occurs as the first macro on a line, which is not portable.
.It Sy "fill mode already enabled, skipping"
.Pq man
A
@@ -1363,6 +1369,17 @@ list, an
.Ic \&It
block is empty.
An empty list item is shown.
+.It Sy "missing argument, using next line"
+.Pq mdoc
+An
+.Ic \&It
+macro in a
+.Ic \&Bd Fl column
+list has no arguments.
+While
+.Nm
+uses the text or macros of the following line, if any, for the cell,
+other formatters may misformat the list.
.It Sy "missing font type, using \efR"
.Pq mdoc
A