Work around bug 5702 a bit: Make tex2lyx treat the DefaultModule tag as

an Input tag.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30896 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-08-07 12:19:59 +00:00
parent c35cfda727
commit 5ba684315e
2 changed files with 10 additions and 0 deletions

View File

@ -347,6 +347,9 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
readOutputType(lexrc);
break;
#ifdef TEX2LYX
case TC_DEFAULTMODULE:
#endif
case TC_INPUT: // Include file
if (lexrc.next()) {
string const inc = lexrc.getString();
@ -493,6 +496,7 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
break;
}
#ifndef TEX2LYX
case TC_DEFAULTMODULE: {
lexrc.next();
string const module = lexrc.getString();
@ -500,6 +504,7 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
default_modules_.push_back(module);
break;
}
#endif
case TC_PROVIDESMODULE: {
lexrc.next();

View File

@ -34,6 +34,11 @@ What's new
* the alternative LaTeX document language names "portuguese" and
"brazilian"
- Partially resolve bug 5702, "tex2lyx cannot deal with modules". We
now treat the "DefaultModule" tag as if it were an "Input" tag. This
is not a general solution, but does deal with one of the most serious
cases of the bug.
* USER INTERFACE