Skip to content

Commit

Permalink
src/mkhelp: strip off escape sequences
Browse files Browse the repository at this point in the history
At some point the nroff command stopped stripping off escape sequences,
so then this script needs to do the job instead.

Reported-by: VictorVG on github
Fixes #11501
  • Loading branch information
bagder committed Jul 23, 2023
1 parent 69c536b commit 6c22b2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mkhelp.pl
Expand Up @@ -51,6 +51,7 @@
# remove trailing CR from line. msysgit checks out files as line+CRLF
$line =~ s/\r$//;

$line =~ s/\x1b\x5b[0-9]+m//g; # escape sequence
if($line =~ /^([ \t]*\n|curl)/i) {
# cut off headers and empty lines
$wline++; # count number of cut off lines
Expand Down

0 comments on commit 6c22b2e

Please sign in to comment.