mirror of
https://github.com/curl/curl.git
synced 2026-07-30 12:18:08 +03:00
badwords: fix issues found in scripts and other files
Single pass, not enforced. Also: - pyspelling.words: drop `web page` Closes #19572
This commit is contained in:
parent
42c43f695c
commit
ad35ecba97
45 changed files with 104 additions and 105 deletions
|
|
@ -55,10 +55,10 @@ while(@ARGV) {
|
|||
print <<HELP
|
||||
Usage: cd2nroff [options] [file.md]
|
||||
|
||||
-d <dir> Write the output to the file name from the meta-data in the
|
||||
-d <dir> Write the output to the filename from the meta-data in the
|
||||
specified directory, instead of writing to stdout
|
||||
-e <ext> If -d is used, this option can provide an added "extension", arbitrary
|
||||
text really, to append to the file name.
|
||||
text really, to append to the filename.
|
||||
-h This help text,
|
||||
-v Show version then exit
|
||||
HELP
|
||||
|
|
@ -373,7 +373,7 @@ sub single {
|
|||
my $blankline = 0;
|
||||
my $header = 0;
|
||||
|
||||
# cut off the leading path from the file name, if any
|
||||
# cut off the leading path from the filename, if any
|
||||
$f =~ s/^(.*[\\\/])//;
|
||||
|
||||
push @desc, ".\\\" generated by cd2nroff $cd2nroff from $f\n";
|
||||
|
|
@ -515,7 +515,7 @@ sub single {
|
|||
$blankline++;
|
||||
}
|
||||
else {
|
||||
# don't output newlines if this is the first content after a
|
||||
# do not output newlines if this is the first content after a
|
||||
# header
|
||||
push @desc, "\n" if($blankline && !$header);
|
||||
$blankline = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue