]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
typo
[lyx.git] / src / Lexer.cpp
index 108d26ba2caacd77194429203808638eeb6e6bcf..9061d7c0b3ab0ac7a23a25681900a720baa3f452 100644 (file)
@@ -499,7 +499,7 @@ bool Lexer::Pimpl::nextToken()
                char cc = 0;
                is.get(cc);
                c = cc;
-               if (c >= ' ' && is) {
+               if ((c >= ' ' || c == '\t') && is) {
                        buff.clear();
 
                        if (c == '\\') { // first char == '\\'
@@ -513,7 +513,7 @@ bool Lexer::Pimpl::nextToken()
                                        buff.push_back(c);
                                        is.get(cc);
                                        c = cc;
-                               } while (c >= ' ' && c != '\\' && is);
+                               } while ((c >= ' ' || c == '\t') && c != '\\' && is);
                        }
 
                        if (c == '\\')