man: Silence more mandoc warnings #182

Merged
orbea merged 1 commits from man into master 2018-04-10 03:28:36 +00:00
orbea commented 2018-04-09 16:57:56 +00:00 (Migrated from github.com)

Here are the remaining fixes for mandoc(1) lint warnings for the pkgconf.1 and pc.5 manuals.

man -Tlint pkgconf
skipping no-space macro
  (mdoc) An input line begins with an Ns macro, or the next argument
  after an Ns macro is an isolated closing delimiter. The macro is
  ignored.
unusual Xr order
  (mdoc) In the SEE ALSO section, an Xr macro with a lower section
  number follows one with a higher number, or two Xr macros referring
  to the same section are out of alphabetical order.
man: pkgconf.1:114:16: WARNING: skipping no-space macro
man: pkgconf.1:114:39: WARNING: skipping no-space macro
man: pkgconf.1:119:14: WARNING: skipping no-space macro
man: pkgconf.1:119:35: WARNING: skipping no-space macro
man: pkgconf.1:119:56: WARNING: skipping no-space macro
man: pkgconf.1:128:28: WARNING: skipping no-space macro
man: pkgconf.1:147:24: WARNING: skipping no-space macro
man: pkgconf.1:217:2: WARNING: unusual Xr order: pc(5) after pkg.m4(7)
man -Tlint pc
whitespace at end of input line
  (mdoc, man, roff) Whitespace at the end of input lines is almost
  never semantically significant -- but in the odd case where it
  might be, it is extremely confusing when reviewing and maintaining
  documents.
new sentence, new line
  (mdoc) A new sentence starts in the middle of a text line. Start it
  on a new input line to help formatters produce correct spacing.
missing -width in -tag list, using 8n
  (mdoc) Every Bl macro having the -tag argument requires -width, too.
man: pc.5:17:76: STYLE: whitespace at end of input line
man: pc.5:18:50: WARNING: new sentence, new line
man: pc.5:49:67: WARNING: new sentence, new line
man: pc.5:87:38: WARNING: new sentence, new line
man: pc.5:90:27: WARNING: new sentence, new line
man: pc.5:113:66: WARNING: new sentence, new line
man: pc.5:117:61: WARNING: new sentence, new line
man: pc.5:123:49: WARNING: new sentence, new line
man: pc.5:56:2: WARNING: missing -width in -tag list, using 6n: Bl -tag
man: pc.5:80:2: WARNING: missing -width in -tag list, using 6n: Bl -tag

https://man.openbsd.org/mandoc.1

The only diff with the rendered manuals here is.

--- pkgconf.1.orig      2018-04-09 09:24:07.282871191 -0700
+++ pkgconf.1   2018-04-09 09:47:29.207856489 -0700
@@ -204,6 +204,6 @@
            -fPIC -I/usr/include/foo
 
 SEE ALSO
-     pkg.m4(7), pc(5)
+     pc(5), pkg.m4(7)
 
 Slackware Linux                November 15, 2016               Slackware Linux
Here are the remaining fixes for `mandoc(1)` lint warnings for the `pkgconf.1` and `pc.5` manuals. ``` man -Tlint pkgconf ``` ``` skipping no-space macro (mdoc) An input line begins with an Ns macro, or the next argument after an Ns macro is an isolated closing delimiter. The macro is ignored. ``` ``` unusual Xr order (mdoc) In the SEE ALSO section, an Xr macro with a lower section number follows one with a higher number, or two Xr macros referring to the same section are out of alphabetical order. ``` ``` man: pkgconf.1:114:16: WARNING: skipping no-space macro man: pkgconf.1:114:39: WARNING: skipping no-space macro man: pkgconf.1:119:14: WARNING: skipping no-space macro man: pkgconf.1:119:35: WARNING: skipping no-space macro man: pkgconf.1:119:56: WARNING: skipping no-space macro man: pkgconf.1:128:28: WARNING: skipping no-space macro man: pkgconf.1:147:24: WARNING: skipping no-space macro man: pkgconf.1:217:2: WARNING: unusual Xr order: pc(5) after pkg.m4(7) ``` ``` man -Tlint pc ``` ``` whitespace at end of input line (mdoc, man, roff) Whitespace at the end of input lines is almost never semantically significant -- but in the odd case where it might be, it is extremely confusing when reviewing and maintaining documents. ``` ``` new sentence, new line (mdoc) A new sentence starts in the middle of a text line. Start it on a new input line to help formatters produce correct spacing. ``` ``` missing -width in -tag list, using 8n (mdoc) Every Bl macro having the -tag argument requires -width, too. ``` ``` man: pc.5:17:76: STYLE: whitespace at end of input line man: pc.5:18:50: WARNING: new sentence, new line man: pc.5:49:67: WARNING: new sentence, new line man: pc.5:87:38: WARNING: new sentence, new line man: pc.5:90:27: WARNING: new sentence, new line man: pc.5:113:66: WARNING: new sentence, new line man: pc.5:117:61: WARNING: new sentence, new line man: pc.5:123:49: WARNING: new sentence, new line man: pc.5:56:2: WARNING: missing -width in -tag list, using 6n: Bl -tag man: pc.5:80:2: WARNING: missing -width in -tag list, using 6n: Bl -tag ``` https://man.openbsd.org/mandoc.1 The only diff with the rendered manuals here is. ``` --- pkgconf.1.orig 2018-04-09 09:24:07.282871191 -0700 +++ pkgconf.1 2018-04-09 09:47:29.207856489 -0700 @@ -204,6 +204,6 @@ -fPIC -I/usr/include/foo SEE ALSO - pkg.m4(7), pc(5) + pc(5), pkg.m4(7) Slackware Linux November 15, 2016 Slackware Linux ```
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#182
There is no content yet.