diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 328c7bc5bc..d2218f40eb 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -311,7 +311,7 @@ void handle_package(Parser &p, string const & name, string const & opts, one_language = false; h_inputencoding = "auto"; } - // babel takes the the last language of the option of its \usepackage + // babel takes the last language of the option of its \usepackage // call as document language. If there is no such language option, the // last language in the documentclass options is used. handle_opt(options, known_languages, h_language); @@ -340,10 +340,12 @@ void handle_package(Parser &p, string const & name, string const & opts, ;// ignore this else if (name == "inputenc") { - // only set when there is not more than one inputenc - // option therefore check for the "," character also - // only set when there is not more then one babel - // language option + // h_inputencoding is only set when there is not more than one + // inputenc option because otherwise h_inputencoding must be + // set to "auto" (the default encoding of the document language) + // 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