wikiheaders: Don't escape . chars in manpage's brief section.

Otherwise, the `apropos` command gets upset.

Fixes #15387.
This commit is contained in:
Ryan C. Gordon
2026-04-15 13:28:52 -04:00
parent 59267ed800
commit a49a5e87a9

View File

@@ -2912,6 +2912,11 @@ __EOF__
$brief = shift @briefsplit;
$brief = dewikify($wikitype, $brief);
# Hack: `apropros` doesn't like escaped character things like `\[char46]` for `.`...since almost every
# manpage will end their Brief section with a period and it won't wordwrap to risk being a groff control
# character, just replace it.
$brief =~ s/\\\[char46\]/./g;
if (defined $remarks) {
$remarks = dewikify($wikitype, join("\n", @briefsplit) . $remarks);
}