mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
preamble.cpp: tex2lyx creates fileformat 264 - the encoding "ascii" is known to LyX since fileformat 262 so that a special handling for this encoding is no longer necessary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32472 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
96c6a139c4
commit
6b26b4abd1
@ -328,14 +328,8 @@ void handle_package(Parser &p, string const & name, string const & opts,
|
||||
// Therefore check for the "," character.
|
||||
// It is also only set when there is not more then one babel
|
||||
// language option but this is handled in the routine for babel.
|
||||
if (opts.find(",") == string::npos && one_language == true) {
|
||||
if (opts == "ascii")
|
||||
//change ascii to auto to be in the unicode range, see
|
||||
//http://www.lyx.org/trac/ticket/4719
|
||||
h_inputencoding = "auto";
|
||||
else if (!opts.empty())
|
||||
h_inputencoding = opts;
|
||||
}
|
||||
if (opts.find(",") == string::npos && one_language == true)
|
||||
h_inputencoding = opts;
|
||||
if (!options.empty())
|
||||
p.setEncoding(options.back());
|
||||
options.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user