mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:43:35 +03:00
src/mkhelp: strip off escape sequences
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 Closes #11503
This commit is contained in:
parent
57f56cc374
commit
e310497a9a
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ while (<STDIN>) {
|
|||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue