On 2023-12-06 20:21 -0500, Thomas Dickey wrote:
> On Wed, Dec 06, 2023 at 07:18:55PM -0500, Thomas Dickey wrote:
>> On Wed, Dec 06, 2023 at 05:26:35PM +0100, Sven Joachim wrote:
>> > Package: ncurses-doc
>> > Version: 6.4+20231121-1
>> >
>> > References to other manpages, e.g. in the "SEE ALSO" section, do no
>> > longer work correctly.
>> >
>> > ,----
>> > | $ man terminfo_variables | grep -A1 "SEE ALSO"
>> > | SEE ALSO
>> > | curses(3X), curs_terminfo(3X), curs_threads(3X), terminfo(5)
>> > `----
>> >
>> > Compare that with the correct references in ncurses-doc 6.4-4 (bookworm):
>> >
>> > ,----
>> > | $ man terminfo_variables | grep -A1 "SEE ALSO"
>> > | SEE ALSO
>> > | ncurses(3NCURSES), terminfo(3NCURSES), threads(3NCURSES),
>> > terminfo(5).
>> > `----
>>
>> I hadn't noticed that (I had to make other fixes to get the filenames
>> to work after Branden's changes in the NAME section, but overlooked this
>> part).
>>
>> > Bisection revealed that (at least for the manpage in question) the
>> > formatting changes in the 20231001 patchlevel triggered the problem.
>> > The man/make_sed.sh script most likely needs to be adjusted, it has not
>> > seen any changes since the 20230625 patchlevel.
>>
>> yes... it's that "\%" pair (will fix)
>
> something like this:
>
> --- man/make_sed.sh 2023/11/25 14:31:18 1.18
> +++ man/make_sed.sh 2023/12/07 01:16:43
> @@ -76,9 +76,10 @@
> $UPPER
>
> echo "# Do the embedded references"
> -sed -e 's/</<fB/' \
> +sed -e 's/</<fB\\(\\\\%\\)\\?/' \
> + -e 's/\\%</\\%/' \
> -e 's/ /\\\\fP(/' \
> - -e 's/ /)\/fB/' \
> + -e 's/ /)\/fB\\\\%/' \
> -e 's/ /\\\\fP(/' \
> -e 's/\/$/)\//' \
> $UPPER
Thanks, that seems to work. I'll wait for this weekend's patchlevel
before taking action.
Cheers,
Sven