Commit 289236b2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

opts: fix bad example formatting \n => \\n

...to render properly nroff.
parent 271c6374
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
  }
}
+2 −2
Original line number Diff line number Diff line
@@ -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);
      }
    }
  }
+1 −1
Original line number Diff line number Diff line
@@ -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":"");
    }
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }
  }
}
Loading