tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: "Anthony J. Bentley" <anthony@anjbe.name>
To: tech@mandoc.bsd.lv
Subject: mandoc should warn on duplicate section names
Date: Thu, 19 Apr 2018 21:11:04 -0600	[thread overview]
Message-ID: <7207.1524193864@cathet.us> (raw)

Hi,

From mdoc(7):

     [Section/Subsection] names should be unique so that they may be
     keyed by Sx.

Breaking this rule has at least two negative effects:

 - Generates duplicate ID attributes in -Thtml, breaking HTML validation
 - Makes jumping to the second section impossible in less or a browser

It would be nice to have this as a -Tlint rule.

-- 
Anthony J. Bentley
--
 To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2018-04-20  3:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7207.1524193864@cathet.us \
    --to=anthony@anjbe.name \
    --cc=tech@mandoc.bsd.lv \
    --subject='Re: mandoc should warn on duplicate section names' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).