Skip to content

Commit

Permalink
whitespace fixes
Browse files Browse the repository at this point in the history
- replace tabs with spaces where possible
- remove line ending spaces
- remove double/triple newlines at EOF
- fix a non-UTF-8 character
- cleanup a few indentations/line continuations
  in manual examples

Closes curl#3037
  • Loading branch information
vszakats committed Sep 23, 2018
1 parent e407e79 commit b801b45
Show file tree
Hide file tree
Showing 231 changed files with 772 additions and 983 deletions.
1 change: 0 additions & 1 deletion CMake/CMakeConfigurableFile.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@CMAKE_CONFIGURABLE_FILE_CONTENT@

28 changes: 14 additions & 14 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,18 @@ VC_DIST = projects/README \
projects/wolfssl_options.h \
projects/wolfssl_override.props

WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
winbuild/MakefileBuild.vc winbuild/Makefile.vc

EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework scripts/zsh.pl \
scripts/updatemanpages.pl $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) \
EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework scripts/zsh.pl \
scripts/updatemanpages.pl $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) \
lib/libcurl.vers.in buildconf.bat scripts/coverage.sh

CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ) \
CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
$(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
$(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
$(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ) \
$(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ) $(VC15_LIBVCXPROJ) $(VC15_SRCVCXPROJ)

bin_SCRIPTS = curl-config
Expand Down Expand Up @@ -305,12 +305,12 @@ checksrc:

.PHONY: vc-ide

vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
$(VC7_SRCVCPROJ_DEPS) $(VC71_LIBVCPROJ_DEPS) $(VC71_SRCVCPROJ_DEPS) \
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
$(VC12_SRCVCXPROJ_DEPS) $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS) \
vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
$(VC7_SRCVCPROJ_DEPS) $(VC71_LIBVCPROJ_DEPS) $(VC71_SRCVCPROJ_DEPS) \
$(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
$(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
$(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
$(VC12_SRCVCXPROJ_DEPS) $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS) \
$(VC15_LIBVCXPROJ_DEPS) $(VC15_SRCVCXPROJ_DEPS)
@(win32_lib_srcs='$(LIB_CFILES)'; \
win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ sponsor](https://opencollective.com/curl#sponsor)]
<a href="https://opencollective.com/curl/sponsor/7/website" target="_blank"><img src="https://opencollective.com/curl/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/curl/sponsor/8/website" target="_blank"><img src="https://opencollective.com/curl/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/curl/sponsor/9/website" target="_blank"><img src="https://opencollective.com/curl/sponsor/9/avatar.svg"></a>


4 changes: 2 additions & 2 deletions buildconf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ rem
rem Returns:
rem
rem 0 - success
rem 1 - success with simplified tool_hugehelp.c
rem 1 - success with simplified tool_hugehelp.c
rem 2 - failed to generate Makefile
rem 3 - failed to generate tool_hugehelp.c
rem
Expand Down Expand Up @@ -193,7 +193,7 @@ rem

if defined ROFFCMD (
echo #include "tool_setup.h"> src\tool_hugehelp.c
echo #include "tool_hugehelp.h">> src\tool_hugehelp.c
echo #include "tool_hugehelp.h">> src\tool_hugehelp.c

if defined HAVE_GZIP (
echo #ifndef HAVE_LIBZ>> src\tool_hugehelp.c
Expand Down
1 change: 0 additions & 1 deletion docs/DEPRECATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,3 @@ revert if need be.

Remove all global-cache related code from curl around April 2019 (might be
7.66.0).

1 change: 0 additions & 1 deletion docs/INSTALL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ cmake-gui
GUI. Once you have selected all the options you want, click the
"Generate" button.
6. Run the native build tool that you used CMake to generate.

18 changes: 9 additions & 9 deletions docs/MANUAL
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ PROXY
options:

curl -u "Remote-FTP-Username@remote.ftp.server Proxy-Username:Remote-Pass" \
--ftp-account Proxy-Password --upload-file local-file \
ftp://my-ftp.proxy.server:21/remote/upload/path/
--ftp-account Proxy-Password --upload-file local-file \
ftp://my-ftp.proxy.server:21/remote/upload/path/

See the manual for your FTP proxy to determine the form it expects to set up
transfers, and curl's -v option to see exactly what curl is sending.
Expand Down Expand Up @@ -234,8 +234,8 @@ UPLOADING

SMB / SMBS

curl -T file.txt -u "domain\username:passwd"
smb://server.example.com/share/
curl -T file.txt -u "domain\username:passwd" \
smb://server.example.com/share/

HTTP

Expand Down Expand Up @@ -294,7 +294,7 @@ POST (HTTP)
Post a simple "name" and "phone" guestbook.

curl -d "name=Rafael%20Sagula&phone=3320780" \
http://www.where.com/guest.cgi
http://www.where.com/guest.cgi

How to post a form with curl, lesson #1:

Expand Down Expand Up @@ -326,8 +326,8 @@ POST (HTTP)

To post to this, you enter a curl command line like:

curl -d "user=foobar&pass=12345&id=blablabla&ding=submit" (continues)
http://www.formpost.com/getthis/post.cgi
curl -d "user=foobar&pass=12345&id=blablabla&ding=submit" \
http://www.formpost.com/getthis/post.cgi


While -d uses the application/x-www-form-urlencoded mime-type, generally
Expand All @@ -342,7 +342,7 @@ POST (HTTP)
with different content types using the following syntax:

curl -F "coolfiles=@fil1.gif;type=image/gif,fil2.txt,fil3.html" \
http://www.post.com/postit.cgi
http://www.post.com/postit.cgi

If the content-type is not specified, curl will try to guess from the file
extension (it only knows a few), or use the previously specified type (from
Expand Down Expand Up @@ -839,7 +839,7 @@ LDAP
curl "ldap://user:passwd@ldap.frontec.se/o=frontec??sub?mail=*"

By default, if user and password provided, OpenLDAP/WinLDAP will use basic
authentication. On Windows you can control this behavior by providing
authentication. On Windows you can control this behavior by providing
one of --basic, --ntlm or --digest option in curl command line

curl --ntlm "ldap://user:passwd@ldap.frontec.se/o=frontec??sub?mail=*"
Expand Down
1 change: 0 additions & 1 deletion docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,3 @@ pdf: $(PDFPAGES)

distclean:
rm -f $(CLEANFILES)

2 changes: 0 additions & 2 deletions docs/README.netware
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ README.netware
curl -M >manual.txt

Read the INSTALL file for instructions on how to compile curl self.


2 changes: 0 additions & 2 deletions docs/README.win32
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ README.win32
curl -M >manual.txt

Read the INSTALL file for instructions on how to compile curl self.


2 changes: 1 addition & 1 deletion docs/TheArtOfHttpScripting
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ The Art Of Scripting HTTP Requests Using Curl
--resolve option:

curl --resolve www.example.org:80:127.0.0.1 http://www.example.org/

2.3 Port number

Each protocol curl supports operates on a default port number, be it over TCP
Expand Down
1 change: 0 additions & 1 deletion docs/cmdline-opts/gen.pl
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,3 @@ sub getargs {
indexoptions();

getargs();

1 change: 0 additions & 1 deletion docs/cmdline-opts/metalink.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ Metalink file at the time of this writing. Also note that if --metalink and
including headers in the response will break Metalink parser and if the
headers are included in the file described in Metalink file, hash check will
fail.

2 changes: 1 addition & 1 deletion docs/examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
AUTOMAKE_OPTIONS = foreign nostdinc

EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \
Makefile.netware makefile.dj $(COMPLICATED_EXAMPLES)
Makefile.netware makefile.dj $(COMPLICATED_EXAMPLES)

# Specify our include paths here, and do it relative to $(top_srcdir) and
# $(top_builddir), to ensure that these paths which belong to the library
Expand Down
Loading

0 comments on commit b801b45

Please sign in to comment.