diff --git a/src/mkhelp.pl b/src/mkhelp.pl index ba2e7c1d40..19a30e2c81 100755 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -51,6 +51,7 @@ while () { # 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