aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl
diff options
context:
space:
mode:
authorSvyatoslav Mishyn <juef@openmailbox.org>2015-09-27 23:44:31 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-09-27 23:45:41 -0400
commit963b7bd4f76fd0e19beaa202bf6f5239eb6153a5 (patch)
treefad0927ea158f12c2f0327f6ee427fced4ded9af /docs/libcurl
parentaf90becf4b91be3b45d9bbafa6366ed901c2572c (diff)
docs: fix unescaped '\n' in man pages
Closes https://github.com/bagder/curl/pull/459
Diffstat (limited to 'docs/libcurl')
-rw-r--r--docs/libcurl/curl_easy_escape.32
-rw-r--r--docs/libcurl/curl_easy_pause.32
-rw-r--r--docs/libcurl/opts/CURLMOPT_PUSHFUNCTION.32
-rw-r--r--docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.36
4 files changed, 6 insertions, 6 deletions
diff --git a/docs/libcurl/curl_easy_escape.3 b/docs/libcurl/curl_easy_escape.3
index c57aeb192..95da51538 100644
--- a/docs/libcurl/curl_easy_escape.3
+++ b/docs/libcurl/curl_easy_escape.3
@@ -49,7 +49,7 @@ CURL *curl = curl_easy_init();
if(curl) {
char *output = curl_easy_escape(curl, "data to convert", 15);
if(output) {
- printf("Encoded: %s\en", output);
+ printf("Encoded: %s\\n", output);
curl_free(output);
}
}
diff --git a/docs/libcurl/curl_easy_pause.3 b/docs/libcurl/curl_easy_pause.3
index 0f6ad5a32..22498cfad 100644
--- a/docs/libcurl/curl_easy_pause.3
+++ b/docs/libcurl/curl_easy_pause.3
@@ -62,7 +62,7 @@ function is called again without this bit set. Thus, the read callback
.IP CURLPAUSE_ALL
Convenience define that pauses both directions.
.IP CURLPAUSE_CONT
-Convenience define that unpauses both directions
+Convenience define that unpauses both directions.
.SH RETURN VALUE
CURLE_OK (zero) means that the option was set properly, and a non-zero return
code means something wrong occurred after the new state was set. See the
diff --git a/docs/libcurl/opts/CURLMOPT_PUSHFUNCTION.3 b/docs/libcurl/opts/CURLMOPT_PUSHFUNCTION.3
index 033f71a72..6a360e793 100644
--- a/docs/libcurl/opts/CURLMOPT_PUSHFUNCTION.3
+++ b/docs/libcurl/opts/CURLMOPT_PUSHFUNCTION.3
@@ -105,7 +105,7 @@ int push_callback(CURL *parent,
FILE *out;
headp = curl_pushheader_byname(headers, ":path");
if(headp && !strncmp(headp, "/push-", 6)) {
- fprintf(stderr, "The PATH is %s\n", headp);
+ fprintf(stderr, "The PATH is %s\\n", headp);
/* save the push here */
out = fopen("pushed-stream", "wb");
diff --git a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3 b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
index 6c4721b7d..431fcedec 100644
--- a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
+++ b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.3
@@ -88,7 +88,7 @@ void dump(const char *text,
size_t c;
unsigned int width=0x10;
- fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n",
+ fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\\n",
text, (long)size, (long)size);
for(i=0; i<size; i+= width) {
@@ -106,7 +106,7 @@ void dump(const char *text,
for(c = 0; (c < width) && (i+c < size); c++)
fputc(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.', stream);
- fputc('\n', stream); /* newline */
+ fputc('\\n', stream); /* newline */
}
}
@@ -167,7 +167,7 @@ int main(void)
res = curl_easy_perform(curl);
/* Check for errors */
if(res != CURLE_OK)
- fprintf(stderr, "curl_easy_perform() failed: %s\n",
+ fprintf(stderr, "curl_easy_perform() failed: %s\\n",
curl_easy_strerror(res));
/* always cleanup */