]> granicus.if.org Git - curl/commitdiff
opts: fix bad example formatting \n => \\n
authorDaniel Stenberg <daniel@haxx.se>
Sat, 6 May 2017 21:51:29 +0000 (23:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 6 May 2017 21:51:29 +0000 (23:51 +0200)
...to render properly nroff.

20 files changed:
docs/libcurl/opts/CURLINFO_ACTIVESOCKET.3
docs/libcurl/opts/CURLINFO_CERTINFO.3
docs/libcurl/opts/CURLINFO_CONDITION_UNMET.3
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_CONTENT_LENGTH_UPLOAD.3
docs/libcurl/opts/CURLINFO_CONTENT_TYPE.3
docs/libcurl/opts/CURLINFO_FTP_ENTRY_PATH.3
docs/libcurl/opts/CURLINFO_HEADER_SIZE.3
docs/libcurl/opts/CURLINFO_HTTPAUTH_AVAIL.3
docs/libcurl/opts/CURLINFO_HTTP_CONNECTCODE.3
docs/libcurl/opts/CURLINFO_LASTSOCKET.3
docs/libcurl/opts/CURLINFO_NUM_CONNECTS.3
docs/libcurl/opts/CURLINFO_PRIMARY_PORT.3
docs/libcurl/opts/CURLINFO_REQUEST_SIZE.3
docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_SIZE_UPLOAD.3
docs/libcurl/opts/CURLINFO_SPEED_DOWNLOAD.3
docs/libcurl/opts/CURLINFO_SPEED_UPLOAD.3
docs/libcurl/opts/CURLOPT_LOW_SPEED_LIMIT.3
docs/libcurl/opts/CURLOPT_LOW_SPEED_TIME.3

index 6c8551606124f25e54d2c8c7e636e6a218f32e4e..b42ba110fbd4eb0d1cc2e4cbb651cdcfdb27a42f 100644 (file)
@@ -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;
   }
 }
index b918af660bfe2c955629121de97300e28d0a0837..29f29ec8d61db6731fd03f5cd5cbb0cfb918176c 100644 (file)
@@ -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);
       }
     }
   }
index 86cc0e49e9c78d539353f388cce1320c4bb481ce..848d297082627afd6d2bb32eb69de690a2e0105f 100644 (file)
@@ -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":"");
     }
   }
 }
index 69bccc1410c514737f7b2a956c5cc53ebc2a596b..43f103fd75626845179231ecb33e89c18ad569ae 100644 (file)
@@ -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);
     }
   }
 }
index 39adfe797d3f36c3d780f6910f314e8d78efc7a9..01eab233261a3b5abcf72d864a5c02ca66fcd167 100644 (file)
@@ -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);
     }
   }
 }
index a7cd70fe907708baef6c27c7de6b9f47ba018573..3dce953e6e74a552552bade142a44eb2b994bc5b 100644 (file)
@@ -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);
index 716ff9feeb808966336bc051cc97c60419d1ada9..00677fd1a27c7d04be7b2c6b088c2a90f5903694 100644 (file)
@@ -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);
index f7d9e7e54f00ea6c925e0fcd0fc334fc1038c357..cc928c72504880c511cb5849c0f13e01d21aa149 100644 (file)
@@ -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);
 }
index da6ee77faff6ded21afcd282ab617fc0cd8d9370..843c4a94298b4e74abd254d7145889b42782fbd3 100644 (file)
@@ -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 ":"",
index 4ecbcaaa7bc27e1705155c33b32e68f211563d91..5f5038d724c65a5b77e16013fea5148b8f3a8380 100644 (file)
@@ -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);
 }
index 4ea2a3ed0d44d7e655180ae59e95df2bc6c1d9fc..693f215d51a7649bede5f9884be027dc5556ede5 100644 (file)
@@ -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;
   }
 }
index ae1ddae99048a36a3a2e639610a829c40b580b86..e682179aa1354c21cb88d69e688f977b4fc5c1fd 100644 (file)
@@ -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);
 }
index 69f2907ffceba1457f2c0f9a40efc58658a203e7..f86855412f90a4bc9a99ec51165ac7e651d937f9 100644 (file)
@@ -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);
 }
index ca2f9a907ac162574ce23726a37ebd63190b5a33..43b183fc4e719e207a87c475fee0aba75df58f53 100644 (file)
@@ -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);
 }
index c5f5d7d8f6852e78458ee3fa6aa3fd1a853197af..4d285e2600fa3fb3e45d9c96b15c1d5d8d9a24fe 100644 (file)
@@ -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);
     }
   }
 }
index 85597c571a1d1e7072449dcf5a0fb3aaf881c790..7ab650ce1ce19ac93ad9bd9104c5f6e5ff354045 100644 (file)
@@ -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);
     }
   }
 }
index aec253bf0311ef994c5f03fc26ccd58ee5583621..15e03800cd3fff3b2c4ff18a52da49c9bafbda4b 100644 (file)
@@ -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);
     }
   }
 }
index 75c56d9e1b892bbd52c6403f296d85801c9c3946..7dfde264bcf8abb4a919d362e29e4a8e187cbf49 100644 (file)
@@ -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);
     }
   }
 }
index e93453f94ce3696e6c86a45f77d8555228598066..7061345cfa97976e1f2986c81f8f3dfea7f710d5 100644 (file)
@@ -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);
index 758dc6eb20c8074350b1ac4087f6f8b44d3f9435..64c3360995d8c08e939658960c661236987004f4 100644 (file)
@@ -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);