mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
tex2lyx: backport fix for bug #8210
This commit is contained in:
parent
530c2ca7a3
commit
2eb4a46d0b
@ -39,6 +39,8 @@ public:
|
||||
///
|
||||
std::string notefontcolor() const { return h_notefontcolor; }
|
||||
///
|
||||
std::string language() const { return h_language; }
|
||||
///
|
||||
std::string use_indices() const { return h_use_indices; }
|
||||
///
|
||||
bool indentParagraphs() const;
|
||||
|
@ -681,6 +681,10 @@ bool tex2lyx(idocstream & is, ostream & os, string encoding)
|
||||
active_environments.push_back("document");
|
||||
Context context(true, textclass);
|
||||
stringstream ss;
|
||||
// store the document language in the context to be able to handle the
|
||||
// commands like \foreignlanguage and \textenglish etc.
|
||||
context.font.language = preamble.language();
|
||||
// parse the main text
|
||||
parse_text(p, ss, FLAG_END, true, context);
|
||||
if (Context::empty)
|
||||
// Empty document body. LyX needs at least one paragraph.
|
||||
|
@ -84,6 +84,7 @@ What's new
|
||||
|
||||
* TEX2LYX
|
||||
|
||||
- Fix bug that language change was not recognized (bug 8210).
|
||||
|
||||
|
||||
* ADVANCED FIND AND REPLACE
|
||||
|
Loading…
Reference in New Issue
Block a user