summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Rs/break.out_ascii
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-08-19 12:59:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-08-19 12:59:26 +0000
commit8ab16425f033eb7746389e5b15f332b1d2f7e1a8 (patch)
tree34b1d6fda35bfecae161501db8cb3b7625e275ae /regress/mdoc/Rs/break.out_ascii
parent1dca33b2df29acbdabc2665070c4b99605298bcb (diff)
downloadmandoc-8ab16425f033eb7746389e5b15f332b1d2f7e1a8.tar.gz
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.
Diffstat (limited to 'regress/mdoc/Rs/break.out_ascii')
-rw-r--r--regress/mdoc/Rs/break.out_ascii6
1 files changed, 2 insertions, 4 deletions
diff --git a/regress/mdoc/Rs/break.out_ascii b/regress/mdoc/Rs/break.out_ascii
index 0c962583..8426cef1 100644
--- a/regress/mdoc/Rs/break.out_ascii
+++ b/regress/mdoc/Rs/break.out_ascii
@@ -12,8 +12,6 @@ SSEEEE AALLSSOO
author, _j_o_u_r_n_a_l, 42.
SSEEEE _A_L_S_O
- reference after a blank line:
-
- author, _j_o_u_r_n_a_l, 42.
+ reference on the same line: author, _j_o_u_r_n_a_l, 42.
-OpenBSD July 4, 2017 OpenBSD
+OpenBSD August 19, 2022 OpenBSD