]> git.lyx.org Git - lyx.git/commitdiff
reLyX patch from Yves Bastide
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 2 Nov 2000 15:03:25 +0000 (15:03 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 2 Nov 2000 15:03:25 +0000 (15:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1184 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
lib/reLyX/MakePreamble.pm

index 224782d24f7f12831197a7bbd0ac63814300fcd6..4833bcb868a130897aaf093b99a40ece8f1d2512 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
+       * lib/reLyX/MakePreamble.pm (translate_preamble): fix reading of
+       class names with non-letter characters (from Yves Bastide).
+
        * lib/ui/default.ui: change Item to OptItem in import menu.
        Comment out fax stuff.
 
index dafd0ba87c5a2896283a58cced0ccca4557b341d..179aed82c1a6dfb4c733e5ffce2fa92eac5cee4b 100644 (file)
@@ -179,7 +179,7 @@ sub translate_preamble {
 
     # Read the document class, in braces, then convert it to a textclass
     # However, if the user input a different class with the -c option, use that
-    s/\s*\{(\w+)\}//;
+    s/\s*\{(\S+)\s*\}//;
     my $class = $1;
     $class = $true_class if $true_class; # override from -c option
     die "no document class in file, no -c option given\n" unless $class;