From d04377a231d546da5f6c9015d5a7edebe9749555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Thu, 10 Dec 2009 02:29:49 +0000 Subject: [PATCH] preamble.cpp: adjust comments for better clarity git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32447 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/preamble.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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