Optionen non-greedy matchen, weil ansonsten HTML-Kommentar-Ende nicht richtig gematch...
[kivitendo-erp.git] / SL / Template / LaTeX.pm
index 7b89aa4..4bfef01 100644 (file)
@@ -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;
     }