]> git.lyx.org Git - features.git/blobdiff - src/tex2lyx/text.cpp
Move cjk check out of the loop
[features.git] / src / tex2lyx / text.cpp
index 88a756dfac0945fd5db6ba5fbee9371def697dd9..fd1499afbb10dee5ef6074ebcf35d90089ddbe48 100644 (file)
@@ -2208,8 +2208,6 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
        bool const use_natbib = isProvided("natbib");
        bool const use_jurabib = isProvided("jurabib");
        string last_env;
-       while (p.good()) {
-               Token const & t = p.get_token();
 
        // it is impossible to determine the correct encoding for non-CJK Japanese.
        // Therefore write a note at the beginning of the document
@@ -2233,6 +2231,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                is_nonCJKJapanese = false;
        }
 
+       while (p.good()) {
+               Token const & t = p.get_token();
 #ifdef FILEDEBUG
                debugToken(cerr, t, flags);
 #endif