1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

docs: fix unescaped '\n' in man pages

Closes https://github.com/bagder/curl/pull/459
This commit is contained in:
Svyatoslav Mishyn 2015-09-27 23:44:31 -04:00 committed by Jay Satiro
parent af90becf4b
commit 963b7bd4f7
4 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ CURL *curl = curl_easy_init();
if(curl) { if(curl) {
char *output = curl_easy_escape(curl, "data to convert", 15); char *output = curl_easy_escape(curl, "data to convert", 15);
if(output) { if(output) {
printf("Encoded: %s\en", output); printf("Encoded: %s\\n", output);
curl_free(output); curl_free(output);
} }
} }

View File

@ -62,7 +62,7 @@ function is called again without this bit set. Thus, the read callback
.IP CURLPAUSE_ALL .IP CURLPAUSE_ALL
Convenience define that pauses both directions. Convenience define that pauses both directions.
.IP CURLPAUSE_CONT .IP CURLPAUSE_CONT
Convenience define that unpauses both directions Convenience define that unpauses both directions.
.SH RETURN VALUE .SH RETURN VALUE
CURLE_OK (zero) means that the option was set properly, and a non-zero return 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 code means something wrong occurred after the new state was set. See the

View File

@ -105,7 +105,7 @@ int push_callback(CURL *parent,
FILE *out; FILE *out;
headp = curl_pushheader_byname(headers, ":path"); headp = curl_pushheader_byname(headers, ":path");
if(headp && !strncmp(headp, "/push-", 6)) { 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 */ /* save the push here */
out = fopen("pushed-stream", "wb"); out = fopen("pushed-stream", "wb");

View File

@ -88,7 +88,7 @@ void dump(const char *text,
size_t c; size_t c;
unsigned int width=0x10; 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); text, (long)size, (long)size);
for(i=0; i<size; i+= width) { 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++) for(c = 0; (c < width) && (i+c < size); c++)
fputc(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.', stream); 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); res = curl_easy_perform(curl);
/* Check for errors */ /* Check for errors */
if(res != CURLE_OK) if(res != CURLE_OK)
fprintf(stderr, "curl_easy_perform() failed: %s\n", fprintf(stderr, "curl_easy_perform() failed: %s\\n",
curl_easy_strerror(res)); curl_easy_strerror(res));
/* always cleanup */ /* always cleanup */