]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.C
Fix fuer #209
[lyx.git] / src / lyxlex_pimpl.C
index 6351ec523ba8b933e36aead8a4aa5e780264ca38..1dc807724e00ff4470132b768b7386a1ee3fdb63 100644 (file)
@@ -311,7 +311,10 @@ bool LyXLex::Pimpl::next(bool esc /* = false */)
                                                // escape the next char
                                                is.get(cc);
                                                c = cc;
-                                               escaped = true;
+                                               if (c == '\"' || c == '\\')
+                                                       escaped = true;
+                                               else
+                                                       buff[++i] = '\\';
                                        }
                                        buff[++i] = c;
                                        
@@ -398,7 +401,7 @@ bool LyXLex::Pimpl::eatLine()
        int i = 0;
        unsigned char c = '\0';
        char cc = 0;
-       while(is && c != '\n' && i != (LEX_MAX_BUFF - 1)) {
+       while (is && c != '\n' && i != (LEX_MAX_BUFF - 1)) {
                is.get(cc);
                c = cc;
                //lyxerr[Debug::LYXLEX] << "LyXLex::EatLine read char: `"