[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 102/254: opts: fix bad example formatting \n => \\n
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 102/254: opts: fix bad example formatting \n => \\n |
Date: |
Sat, 17 Jun 2017 16:52:14 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit 289236b223db7baa04c7f1c586f321c8ac04e98a
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat May 6 23:51:29 2017 +0200
opts: fix bad example formatting \n => \\n
...to render properly nroff.
---
docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3 | 2 +-
docs/libcurl/opts/CURLINFO_CERTINFO.3 | 4 ++--
docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3 | 2 +-
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3 | 2 +-
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3 | 2 +-
docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3 | 2 +-
docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3 | 2 +-
docs/libcurl/opts/CURLINFO_HEADER_SIZE.3 | 2 +-
docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3 | 4 ++--
docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3 | 2 +-
docs/libcurl/opts/CURLINFO_LASTSOCKET.3 | 2 +-
docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3 | 2 +-
docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3 | 2 +-
docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3 | 2 +-
docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3 | 2 +-
docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3 | 2 +-
docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3 | 2 +-
docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3 | 2 +-
docs/libcurl/opts/CURLOPT_LOW_SPEED_LIMIT.3 | 2 +-
docs/libcurl/opts/CURLOPT_LOW_SPEED_TIME.3 | 2 +-
20 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
b/docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
index 6c8551606..b42ba110f 100644
--- a/docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
+++ b/docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
@@ -55,7 +55,7 @@ if(curl) {
res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd);
if(res != CURLE_OK) {
- printf("Error: %s\n", curl_easy_strerror(res));
+ printf("Error: %s\\n", curl_easy_strerror(res));
return 1;
}
}
diff --git a/docs/libcurl/opts/CURLINFO_CERTINFO.3
b/docs/libcurl/opts/CURLINFO_CERTINFO.3
index b918af660..29f29ec8d 100644
--- a/docs/libcurl/opts/CURLINFO_CERTINFO.3
+++ b/docs/libcurl/opts/CURLINFO_CERTINFO.3
@@ -57,13 +57,13 @@ if(curl) {
res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ci);
if (!res) {
- printf("%d certs!\n", ci->num_of_certs);
+ printf("%d certs!\\n", ci->num_of_certs);
for(i = 0; i < ci->num_of_certs; i++) {
struct curl_slist *slist;
for(slist = ci->certinfo[i]; slist; slist = slist->next)
- printf("%s\n", slist->data);
+ printf("%s\\n", slist->data);
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
b/docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
index 86cc0e49e..848d29708 100644
--- a/docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
+++ b/docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
@@ -55,7 +55,7 @@ if(curl) {
long unmet;
res = curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &unmet);
if(!res) {
- printf("The time condition was %sfulfilled\n", unmet?"NOT":"");
+ printf("The time condition was %sfulfilled\\n", unmet?"NOT":"");
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
b/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
index 69bccc141..43f103fd7 100644
--- a/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
@@ -48,7 +48,7 @@ if(curl) {
double cl;
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &cl);
if(!res) {
- printf("Size: %.0f\n", cl);
+ printf("Size: %.0f\\n", cl);
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
b/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
index 39adfe797..01eab2332 100644
--- a/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
@@ -47,7 +47,7 @@ if(curl) {
double cl;
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &cl);
if(!res) {
- printf("Size: %.0f\n", cl);
+ printf("Size: %.0f\\n", cl);
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
b/docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
index a7cd70fe9..3dce953e6 100644
--- a/docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
+++ b/docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
@@ -51,7 +51,7 @@ if(curl) {
char *ct = NULL;
res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct);
if(!res && ct) {
- printf("Content-Type: %s\n", ct);
+ printf("Content-Type: %s\\n", ct);
}
}
curl_easy_cleanup(curl);
diff --git a/docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
b/docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
index 716ff9fee..00677fd1a 100644
--- a/docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
+++ b/docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
@@ -51,7 +51,7 @@ if(curl) {
char *ep = NULL;
res = curl_easy_getinfo(curl, CURLINFO_FTP_ENTRY_PATH, &ep);
if(!res && ep) {
- printf("Entry path was: %s\n", ep);
+ printf("Entry path was: %s\\n", ep);
}
}
curl_easy_cleanup(curl);
diff --git a/docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
b/docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
index f7d9e7e54..cc928c725 100644
--- a/docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
+++ b/docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
@@ -46,7 +46,7 @@ if(curl) {
long size;
res = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &size);
if(!res)
- printf("Header size: %ld bytes\n", size);
+ printf("Header size: %ld bytes\\n", size);
}
curl_easy_cleanup(curl);
}
diff --git a/docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
b/docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
index da6ee77fa..843c4a942 100644
--- a/docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
+++ b/docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
@@ -48,9 +48,9 @@ if(curl) {
res = curl_easy_getinfo(curl, CURLINFO_HTTPAUTH_AVAIL, &auth);
if(!res) {
if(!auth)
- printf("No auth available, perhaps no 401?\n");
+ printf("No auth available, perhaps no 401?\\n");
else {
- printf("%s%s%s%s\n",
+ printf("%s%s%s%s\\n",
auth & CURLAUTH_BASIC ? "Basic ":"",
auth & CURLAUTH_DIGEST ? "Digest ":"",
auth & CURLAUTH_NEGOTIATE ? "Negotiate ":"",
diff --git a/docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
b/docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
index 4ecbcaaa7..5f5038d72 100644
--- a/docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
+++ b/docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
@@ -47,7 +47,7 @@ if(curl) {
long code;
res = curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, &code);
if(!res && code)
- printf("The CONNECT response code: %03ld\n", code);
+ printf("The CONNECT response code: %03ld\\n", code);
}
curl_easy_cleanup(curl);
}
diff --git a/docs/libcurl/opts/CURLINFO_LASTSOCKET.3
b/docs/libcurl/opts/CURLINFO_LASTSOCKET.3
index 4ea2a3ed0..693f215d5 100644
--- a/docs/libcurl/opts/CURLINFO_LASTSOCKET.3
+++ b/docs/libcurl/opts/CURLINFO_LASTSOCKET.3
@@ -57,7 +57,7 @@ if(curl) {
res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &sockfd);
if(res != CURLE_OK) {
- printf("Error: %s\n", curl_easy_strerror(res));
+ printf("Error: %s\\n", curl_easy_strerror(res));
return 1;
}
}
diff --git a/docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
b/docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
index ae1ddae99..e682179aa 100644
--- a/docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
+++ b/docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
@@ -48,7 +48,7 @@ if(curl) {
long connects;
res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connects);
if(res)
- printf("It needed %d connects\n", connects);
+ printf("It needed %d connects\\n", connects);
}
curl_easy_cleanup(curl);
}
diff --git a/docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
b/docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
index 69f2907ff..f86855412 100644
--- a/docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
+++ b/docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
@@ -43,7 +43,7 @@ if(curl) {
long port;
res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_PORT, &port);
if(!res)
- printf("Connected to remote port: %ld\n", port);
+ printf("Connected to remote port: %ld\\n", port);
}
curl_easy_cleanup(curl);
}
diff --git a/docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3
b/docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3
index ca2f9a907..43b183fc4 100644
--- a/docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3
+++ b/docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3
@@ -44,7 +44,7 @@ if(curl) {
long req;
res = curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &req);
if(!res)
- printf("Request size: %ld bytes\n", req);
+ printf("Request size: %ld bytes\\n", req);
}
curl_easy_cleanup(curl);
}
diff --git a/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
b/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
index c5f5d7d8f..4d285e260 100644
--- a/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
@@ -49,7 +49,7 @@ if(curl) {
double dl;
res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &dl);
if(!res) {
- printf("Downloaded %.0f bytes\n", cl);
+ printf("Downloaded %.0f bytes\\n", cl);
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3
b/docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3
index 85597c571..7ab650ce1 100644
--- a/docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3
@@ -45,7 +45,7 @@ if(curl) {
double ul;
res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &ul);
if(!res) {
- printf("Uploaded %.0f bytes\n", ul);
+ printf("Uploaded %.0f bytes\\n", ul);
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
b/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
index aec253bf0..15e03800c 100644
--- a/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
@@ -44,7 +44,7 @@ if(curl) {
double speed;
res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD, &speed);
if(!res) {
- printf("Download speed %.0f bytes/sec\n", ul);
+ printf("Download speed %.0f bytes/sec\\n", ul);
}
}
}
diff --git a/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3
b/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3
index 75c56d9e1..7dfde264b 100644
--- a/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3
@@ -44,7 +44,7 @@ if(curl) {
double speed;
res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed);
if(!res) {
- printf("Upload speed %.0f bytes/sec\n", ul);
+ printf("Upload speed %.0f bytes/sec\\n", ul);
}
}
}
diff --git a/docs/libcurl/opts/CURLOPT_LOW_SPEED_LIMIT.3
b/docs/libcurl/opts/CURLOPT_LOW_SPEED_LIMIT.3
index e93453f94..7061345cf 100644
--- a/docs/libcurl/opts/CURLOPT_LOW_SPEED_LIMIT.3
+++ b/docs/libcurl/opts/CURLOPT_LOW_SPEED_LIMIT.3
@@ -46,7 +46,7 @@ if(curl) {
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 30L);
res = curl_easy_perform(curl);
if(CURLE_OPERATION_TIMEDOUT == res) {
- printf("Timeout!\n");
+ printf("Timeout!\\n");
}
/* always cleanup */
curl_easy_cleanup(curl);
diff --git a/docs/libcurl/opts/CURLOPT_LOW_SPEED_TIME.3
b/docs/libcurl/opts/CURLOPT_LOW_SPEED_TIME.3
index 758dc6eb2..64c336099 100644
--- a/docs/libcurl/opts/CURLOPT_LOW_SPEED_TIME.3
+++ b/docs/libcurl/opts/CURLOPT_LOW_SPEED_TIME.3
@@ -45,7 +45,7 @@ if(curl) {
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 30L);
res = curl_easy_perform(curl);
if(CURLE_OPERATION_TIMEDOUT == res) {
- printf("Timeout!\n");
+ printf("Timeout!\\n");
}
/* always cleanup */
curl_easy_cleanup(curl);
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 32/254: cookie_interface.c: fix cookie domain so the example works, (continued)
- [GNUnet-SVN] [gnurl] 32/254: cookie_interface.c: fix cookie domain so the example works, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 87/254: test557: set a known good numeric locale, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 89/254: tests/server: make string literals const, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 37/254: runtests.pl: support multiline <postcheck> commands, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 75/254: curl: non-boolean command line args reject --no- prefixes, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 52/254: anyauthput: remove unused code, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 39/254: url: fixed a memory leak on OOM while setting CURLOPT_BUFFERSIZE, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 108/254: test537: use correct variable type, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 103/254: buildconf: fix hang on IRIX, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 30/254: lib: remove unused code, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 102/254: opts: fix bad example formatting \n => \\n,
gnunet <=
- [GNUnet-SVN] [gnurl] 86/254: curl: fix warning "comma at end of enumerator list", gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 61/254: failf: use private buffer, don't clobber receive buffer, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 92/254: runtests: use -R for random order, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 71/254: url: let CURLOPT_BUFFERSIZE realloc to smaller sizes too, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 42/254: unit1604: fixed compilation under Windows, broken in the previous commit, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 38/254: tests: added --remote-time tests for remaining protocols that support it, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 41/254: tests: fixed OOM handling of unit tests to abort test, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 55/254: CURLOPT_BUFFERSIZE: 1024 bytes is now the minimum size, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 57/254: buffer_size: make sure it always has the correct size, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 105/254: asyn-thread: fix unused macro warnings, gnunet, 2017/06/17