Skip to content

Commit 1f7aa16

Browse files
committed
wikiheaders: Man pages should escape apostrophe chars.
This prevents problems if one starts a line, which would cause it to be interpreted as a command character. Fixes #13038.
1 parent cf62637 commit 1f7aa16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-scripts/wikiheaders.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ sub dewikify_chunk {
426426
# make sure these can't become part of roff syntax.
427427
$str =~ s/\./\\[char46]/gms;
428428
$str =~ s/"/\\(dq/gms;
429+
$str =~ s/'/\\(aq/gms;
429430

430431
if ($wikitype eq 'mediawiki') {
431432
# Dump obvious wikilinks.

0 commit comments

Comments
 (0)