mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
Revert "tex2lyx/Preamble.cpp: fix bug #8525 temporarily"
This reverts commit a69fcde0726450d696081ed5c21506d42a90b103. The commit causing #8525 is [2f7f0c76/lyxgit]
This commit is contained in:
parent
036a4be387
commit
5db148d22c
@ -853,20 +853,11 @@ void Preamble::handle_package(Parser &p, string const & name,
|
||||
// Therefore check for the "," character.
|
||||
// It is also only set when there is not more than one babel
|
||||
// language option.
|
||||
if (!opts.empty()) {
|
||||
if (opts.find(",") == string::npos && one_language == true) {
|
||||
h_inputencoding = opts;
|
||||
// FIXME: if this line is used, tex2lyx swallows the next character
|
||||
// in the file behind "{inputenc}"
|
||||
//p.setEncoding(opts);
|
||||
} else {
|
||||
h_preamble << "\\usepackage[" << opts << "}{" << name << "}\n";
|
||||
// FIXME: enabling this introduces bug #8525
|
||||
//p.setEncoding(options.back(), Encoding::inputenc);
|
||||
}
|
||||
options.clear();
|
||||
} else
|
||||
h_preamble << "\\usepackage{" << name << "}\n";
|
||||
if (opts.find(",") == string::npos && one_language == true)
|
||||
h_inputencoding = opts;
|
||||
if (!options.empty())
|
||||
p.setEncoding(options.back(), Encoding::inputenc);
|
||||
options.clear();
|
||||
}
|
||||
|
||||
else if (name == "srcltx") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user