From 8ab16425f033eb7746389e5b15f332b1d2f7e1a8 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 19 Aug 2022 12:59:26 +0000 Subject: 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. --- regress/mdoc/Rs/break.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/mdoc/Rs/break.in') diff --git a/regress/mdoc/Rs/break.in b/regress/mdoc/Rs/break.in index bdae33fe..ebeac4be 100644 --- a/regress/mdoc/Rs/break.in +++ b/regress/mdoc/Rs/break.in @@ -1,4 +1,4 @@ -.\" $OpenBSD: break.in,v 1.5 2017/07/04 14:53:26 schwarze Exp $ +.\" $OpenBSD: break.in,v 1.6 2022/08/19 12:49:36 schwarze Exp $ .Dd $Mdocdate$ .Dt RS-BREAK 1 .Os @@ -20,7 +20,7 @@ reference after a blank line: .%N 42 .Re .Sh SEE Em ALSO -reference after a blank line: +reference on the same line: .Rs .%A author .%J journal -- cgit