aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/opts
diff options
context:
space:
mode:
authorGisle Vanem <gisle.vanem@gmail.com>2018-11-07 13:26:55 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-11-09 15:38:52 +0100
commit073332b52515391338cff7bbe407d126fdf9c893 (patch)
treee29bf6230e1dbb87f20214fda5770af45e8a6650 /docs/libcurl/opts
parentf859b05c6686b2c5a41fd7805f164229b3c6d7c8 (diff)
docs: ESCape "\n" codes
Groff / Troff will display a: printaf("Errno: %ld\n", error); as: printf("Errno: %ld0, error); when a "\n" is not escaped. Use "\\n" instead. Closes #3246
Diffstat (limited to 'docs/libcurl/opts')
-rw-r--r--docs/libcurl/opts/CURLINFO_OS_ERRNO.32
-rw-r--r--docs/libcurl/opts/CURLOPT_CHUNK_DATA.36
-rw-r--r--docs/libcurl/opts/CURLOPT_CLOSESOCKETDATA.32
-rw-r--r--docs/libcurl/opts/CURLOPT_CLOSESOCKETFUNCTION.32
4 files changed, 6 insertions, 6 deletions
diff --git a/docs/libcurl/opts/CURLINFO_OS_ERRNO.3 b/docs/libcurl/opts/CURLINFO_OS_ERRNO.3
index 6348d6cf8..63072ae1a 100644
--- a/docs/libcurl/opts/CURLINFO_OS_ERRNO.3
+++ b/docs/libcurl/opts/CURLINFO_OS_ERRNO.3
@@ -44,7 +44,7 @@ if(curl) {
long error;
res = curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &error);
if(res && error) {
- printf("Errno: %ld\n", error);
+ printf("Errno: %ld\\n", error);
}
}
curl_easy_cleanup(curl);
diff --git a/docs/libcurl/opts/CURLOPT_CHUNK_DATA.3 b/docs/libcurl/opts/CURLOPT_CHUNK_DATA.3
index 6a734e58c..ebf76559e 100644
--- a/docs/libcurl/opts/CURLOPT_CHUNK_DATA.3
+++ b/docs/libcurl/opts/CURLOPT_CHUNK_DATA.3
@@ -46,20 +46,20 @@ static long file_is_coming(struct curl_fileinfo *finfo,
switch(finfo->filetype) {
case CURLFILETYPE_DIRECTORY:
- printf(" DIR\n");
+ printf(" DIR\\n");
break;
case CURLFILETYPE_FILE:
printf("FILE ");
break;
default:
- printf("OTHER\n");
+ printf("OTHER\\n");
break;
}
if(finfo->filetype == CURLFILETYPE_FILE) {
/* do not transfer files >= 50B */
if(finfo->size > 50) {
- printf("SKIPPED\n");
+ printf("SKIPPED\\n");
return CURL_CHUNK_BGN_FUNC_SKIP;
}
diff --git a/docs/libcurl/opts/CURLOPT_CLOSESOCKETDATA.3 b/docs/libcurl/opts/CURLOPT_CLOSESOCKETDATA.3
index b1eab0378..b9bca47dc 100644
--- a/docs/libcurl/opts/CURLOPT_CLOSESOCKETDATA.3
+++ b/docs/libcurl/opts/CURLOPT_CLOSESOCKETDATA.3
@@ -39,7 +39,7 @@ All except file:
.nf
static int closesocket(void *clientp, curl_socket_t item)
{
- printf("libcurl wants to close %d now\n", (int)item);
+ printf("libcurl wants to close %d now\\n", (int)item);
return 0;
}
diff --git a/docs/libcurl/opts/CURLOPT_CLOSESOCKETFUNCTION.3 b/docs/libcurl/opts/CURLOPT_CLOSESOCKETFUNCTION.3
index 7cfaa22be..3fb75f747 100644
--- a/docs/libcurl/opts/CURLOPT_CLOSESOCKETFUNCTION.3
+++ b/docs/libcurl/opts/CURLOPT_CLOSESOCKETFUNCTION.3
@@ -50,7 +50,7 @@ All
.nf
static int closesocket(void *clientp, curl_socket_t item)
{
- printf("libcurl wants to close %d now\n", (int)item);
+ printf("libcurl wants to close %d now\\n", (int)item);
return 0;
}