reLyX patch from Yves Bastide

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1184 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-11-02 15:03:25 +00:00
parent c2077c66a8
commit 9db895d394
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 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. * lib/ui/default.ui: change Item to OptItem in import menu.
Comment out fax stuff. Comment out fax stuff.

View File

@ -179,7 +179,7 @@ sub translate_preamble {
# Read the document class, in braces, then convert it to a textclass # 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 # However, if the user input a different class with the -c option, use that
s/\s*\{(\w+)\}//; s/\s*\{(\S+)\s*\}//;
my $class = $1; my $class = $1;
$class = $true_class if $true_class; # override from -c option $class = $true_class if $true_class; # override from -c option
die "no document class in file, no -c option given\n" unless $class; die "no document class in file, no -c option given\n" unless $class;