From 660206845e6f0d045b65b649e4b5750a968443e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 28 Sep 2009 12:07:59 +0200 Subject: [PATCH] Syntaxhighlighting erleichtern. (Ich darf das auch mal) --- SL/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Template.pm b/SL/Template.pm index 3ec7cd138..fe4b24893 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -501,7 +501,7 @@ sub _force_mandatory_packages { my (%used_packages, $document_start_line); foreach my $i (0 .. scalar @{ $lines } - 1) { - if ($lines->[$i] =~ m/\\usepackage[^{]*{(.*?)}/) { + if ($lines->[$i] =~ m/\\usepackage[^\{]*{(.*?)}/) { $used_packages{$1} = 1; } elsif ($lines->[$i] =~ m/\\begin{document}/) { -- 2.20.1