mirror of
https://github.com/curl/curl.git
synced 2026-07-23 19:27:17 +03:00
tidy-up: miscellaneous
- drop more uses of the word "just". (not enforced here) - drop some uses of the "will" word. - "then" -> "than". - tests/http/testenv/curl.py: fix copy-paste typo in error message. - pytest: replace `shutdownh` with `shutdown` in test names. Spotted by GitHub Code Quality. - comment typos. - whitespace and newlines fixes. Closes #21830
This commit is contained in:
parent
032b15c434
commit
d229055549
116 changed files with 184 additions and 185 deletions
|
|
@ -426,7 +426,7 @@ sub single {
|
|||
print STDERR "$f:$line:1:ERROR: un-escaped < or > used\n";
|
||||
$errors++;
|
||||
}
|
||||
# convert backslash-'<' or '> to just the second character
|
||||
# convert backslash-'<' or '> to the second character
|
||||
$d =~ s/\\([<>])/$1/g;
|
||||
|
||||
# mentions of curl symbols with man pages use italics by default
|
||||
|
|
|
|||
|
|
@ -879,7 +879,7 @@ sub scanfile {
|
|||
}
|
||||
}
|
||||
|
||||
# check for "return" with parentheses around just a value/name
|
||||
# check for "return" with parentheses around a value/name
|
||||
if($l =~ /^(.*\W)return \(\w*\);/) {
|
||||
checkwarn("RETURNPAREN", $line, length($1)+7, $file, $l,
|
||||
"return with paren");
|
||||
|
|
|
|||
|
|
@ -494,7 +494,7 @@ sub render {
|
|||
}
|
||||
}
|
||||
|
||||
# convert backslash-'<' or '> to just the second character
|
||||
# convert backslash-'<' or '> to the second character
|
||||
$d =~ s/\\([><])/$1/g;
|
||||
# convert single backslash to double-backslash
|
||||
$d =~ s/\\/\\\\/g if($manpage);
|
||||
|
|
@ -916,7 +916,7 @@ sub single {
|
|||
push @ex, "[0q]Example$s:\n";
|
||||
#
|
||||
# long ASCII examples are wrapped. Preferably at the last space
|
||||
# before the margin. Or at a colon. Otherwise it just cuts at the
|
||||
# before the margin. Or at a colon. Otherwise it cuts at the
|
||||
# exact boundary.
|
||||
#
|
||||
foreach my $e (@examples) {
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ sub storelink {
|
|||
#print "-- whitelisted: $link\n";
|
||||
$whitelist{$link}++;
|
||||
}
|
||||
# example.com is just example
|
||||
# example.com is used as example
|
||||
elsif($link =~ /^https:\/\/(.*)example.(com|org|net)/) {
|
||||
#print "-- example: $link\n";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ print CRT <<EOT;
|
|||
## It contains the certificates in ${format}PEM format and therefore
|
||||
## can be directly used with curl / libcurl / php_curl, or with
|
||||
## an Apache+mod_ssl webserver for SSL client authentication.
|
||||
## Just configure this file as the SSLCACertificateFile.
|
||||
## Configure this file as the SSLCACertificateFile.
|
||||
##
|
||||
## Conversion done with mk-ca-bundle.pl version $version.
|
||||
## SHA256: $newhash
|
||||
|
|
@ -493,7 +493,7 @@ while(<TXT>) {
|
|||
#
|
||||
# The latter is for certificates that have already been removed and are not
|
||||
# included. Not all explicitly distrusted certificates are ignored at this
|
||||
# point, just those without an actual certificate.
|
||||
# point, only those without an actual certificate.
|
||||
elsif(!$main_block && !$trust_block) {
|
||||
next;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ This script converts an nroff file to curldown
|
|||
Example: cd2nroff [options] <file.md> > <file.3>
|
||||
|
||||
Note: when converting .nf sections, this tool does not know if the
|
||||
section is code or just regular quotes. It then assumes and uses ~~~c
|
||||
section is code or regular quotes. It then assumes and uses ~~~c
|
||||
for code.
|
||||
|
||||
=end comment
|
||||
|
|
@ -116,7 +116,7 @@ HEAD
|
|||
# if there are enclosing quotes, remove them first
|
||||
$word =~ s/[\"\'](.*)[\"\']\z/$1/;
|
||||
if($word eq "SEE ALSO") {
|
||||
# we just slurp up this section
|
||||
# we slurp up this section
|
||||
next;
|
||||
}
|
||||
push @desc, "\n# $word\n\n";
|
||||
|
|
@ -131,7 +131,7 @@ HEAD
|
|||
push @desc, "\n## $word\n\n";
|
||||
}
|
||||
elsif($d =~ /^\.IP/) {
|
||||
# .IP with no text we just skip
|
||||
# .IP with no text we skip
|
||||
}
|
||||
elsif($d =~ /^\.BR (.*)/) {
|
||||
# only used for SEE ALSO
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ Options:
|
|||
--no-decode-filename: Do not percent-decode the output filename, even if the percent-encoding in
|
||||
the URL was done by wcurl, e.g.: The URL contained whitespace.
|
||||
|
||||
--dry-run: Do not actually execute curl, just print what would be invoked.
|
||||
--dry-run: Do not actually execute curl, only print what would be invoked.
|
||||
|
||||
-V, --version: Print version information.
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ get_url_filename()
|
|||
# sed to also replace ':' with the percent_encoded %3A
|
||||
*/*) percent_decode "$(printf %s "${hostname_and_path}" | sed -e 's,^.*/,,' -e 's,:,%3A,g')" ;;
|
||||
esac
|
||||
# No slash means there was just a hostname and no path; return empty string.
|
||||
# No slash means there was only a hostname and no path; return empty string.
|
||||
}
|
||||
|
||||
# Execute curl with the list of URLs provided by the user.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue