From b38738a4efd5d87c5344b066b92fda182bdb66b3 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 31 Jul 2020 15:53:36 +0200 Subject: Minors tweaks to the regular expressions --- templates/html/bib2xhtml.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/html/bib2xhtml.pl b/templates/html/bib2xhtml.pl index 8d2b9b2..ca40b5f 100755 --- a/templates/html/bib2xhtml.pl +++ b/templates/html/bib2xhtml.pl @@ -198,7 +198,7 @@ while () { next loop; } $nentry++; - ($bcite, $blabel) = m+
\[([^\]]*)\]
+; + ($bcite, $blabel) = m:
\[([^\]]*)\]
:; $blabel = "$nentry"; $bibcite{$bcite} = $blabel; } @@ -222,7 +222,7 @@ while () { } s/\%\n//g; s/(\.(<\/cite>|<\/a>|\')+)\./$1/g; - s:(
\[)[^\]]*(\]
):$1$nentry$2:; + s:(
\[)[^\]]*(\]
):$1$nentry$2:; while (m/(\\(cite(label)?)(\001\d+)\{([^\001]+)\4\})/) { $old = $1; $cmd = $2; -- cgit v0.12