[BACK]Return to break.out_ascii CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / mdoc / Rs

File: [cvsweb.bsd.lv] / mandoc / regress / mdoc / Rs / break.out_ascii (download)

Revision 1.3, Fri Aug 19 12:59:27 2022 UTC (21 months, 3 weeks ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -4 lines

Up to version 1.22.4, groff_mdoc(7) only considered the first word
when comparing section headers.  For example, ".Sh SEE ELSEWHERE"
and ".Sh SEE Em ALSO" were considered instances of a SEE ALSO
section.  In groff-current, exact matches with no sub-macros are
required.  Adjust mandoc behaviour.

While here, also fix a very minor mandoc bug, even though no
detrimental effect of the bug on formatting is known.  While using
sub-macros in the .Sh HEAD is bad style, the parsers accept it, so
setting the section attribute on the HEAD needs to act recursively.

RS-BREAK(1)                 General Commands Manual                RS-BREAK(1)

NNAAMMEE
     RRss--bbrreeaakk - line break before reference start

DDEESSCCRRIIPPTTIIOONN
     reference on the same line: author, _j_o_u_r_n_a_l, 42.

SSEEEE AALLSSOO
     reference after a blank line:

     author, _j_o_u_r_n_a_l, 42.

SSEEEE _A_L_S_O
     reference on the same line: author, _j_o_u_r_n_a_l, 42.

OpenBSD                         August 19, 2022                        OpenBSD