]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cd2nroff: remove backticks from titles
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Feb 2024 09:56:38 +0000 (10:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Feb 2024 10:41:12 +0000 (11:41 +0100)
scripts/cd2nroff

index decaeca0a814ac4086b43a07bbffe982b9d1e983..02460cc9da5bc1a6a945f125d839d0cd9d6c699f 100755 (executable)
@@ -266,7 +266,7 @@ sub single {
         if(/^## (.*)/) {
             my $word = $1;
             # if there are enclosing quotes, remove them first
-            $word =~ s/[\"\'](.*)[\"\']\z/$1/;
+            $word =~ s/[\"\'\`](.*)[\"\'\`]\z/$1/;
 
             # enclose in double quotes if there is a space present
             if($word =~ / /) {