From: Daniel Stenberg Date: Sat, 13 Jan 2024 09:49:20 +0000 (+0100) Subject: gen: do italics/bold for a range of letters, not just single word X-Git-Tag: curl-8_6_0~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9729560a6ff1e4ae71915d972c88d2da37ba474e;p=thirdparty%2Fcurl.git gen: do italics/bold for a range of letters, not just single word Previously it would match only on a sequence of non-space, which made it miss to highlight for example "public suffix list". Updated the recent cookie.d edit from 5da57193b732 to use bold instead of italics. Closes #12689 --- diff --git a/docs/cmdline-opts/cookie.d b/docs/cmdline-opts/cookie.d index 601a1958c8..108846c062 100644 --- a/docs/cmdline-opts/cookie.d +++ b/docs/cmdline-opts/cookie.d @@ -45,7 +45,7 @@ Users often want to both read cookies from a file and write updated cookies back to a file, so using both --cookie and --cookie-jar in the same command line is common. -If curl is built with PSL (*Public Suffix List*) support, it detects and +If curl is built with PSL (**Public Suffix List**) support, it detects and discards cookies that are specified for such suffix domains that should not be allowed to have cookies. If curl is *not* built with PSL support, it has no ability to stop super cookies. diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index fbe0f546b8..b31a42b580 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -98,9 +98,9 @@ sub printdesc { } if($d !~ /^.\\"/) { # **bold** - $d =~ s/\*\*([^ ]*)\*\*/\\fB$1\\fP/g; + $d =~ s/\*\*(.*?)\*\*/\\fB$1\\fP/g; # *italics* - $d =~ s/\*([^ ]*)\*/\\fI$1\\fP/g; + $d =~ s/\*(.*?)\*/\\fI$1\\fP/g; } if(!$exam && ($d =~ /^ /)) { # start of example