From 073332b52515391338cff7bbe407d126fdf9c893 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 7 Nov 2018 13:26:55 +0100 Subject: 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 --- docs/libcurl/opts/CURLINFO_OS_ERRNO.3 | 2 +- docs/libcurl/opts/CURLOPT_CHUNK_DATA.3 | 6 +++--- docs/libcurl/opts/CURLOPT_CLOSESOCKETDATA.3 | 2 +- docs/libcurl/opts/CURLOPT_CLOSESOCKETFUNCTION.3 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/libcurl') 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; } -- cgit v1.2.1