Revision 61f09f2c
Von Moritz Bunkus vor mehr als 14 Jahren hinzugefügt
SL/Template/LaTeX.pm | ||
---|---|---|
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;
|
||
}
|
Auch abrufbar als: Unified diff
Optionen non-greedy matchen, weil ansonsten HTML-Kommentar-Ende nicht richtig gematcht wird