From 61f09f2c2552f7e94eef8220d0b14ffb118633cd Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 14 Dec 2010 14:24:06 +0100 Subject: [PATCH] Optionen non-greedy matchen, weil ansonsten HTML-Kommentar-Ende nicht richtig gematcht wird --- SL/Template/LaTeX.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Template/LaTeX.pm b/SL/Template/LaTeX.pm index 7b89aa4ab..4bfef01f7 100644 --- a/SL/Template/LaTeX.pm +++ b/SL/Template/LaTeX.pm @@ -275,7 +275,7 @@ sub _parse_config_lines { while ($i < $num_lines) { my $line = $lines->[$i]; - if ($line !~ m/^${comment_start}\s*config\s*:(.*)${comment_end}$/i) { + if ($line !~ m/^${comment_start}\s*config\s*:(.*?)${comment_end}$/i) { $i++; next; } -- 2.20.1