diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 468d67d63e..d13408b91e 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -415,7 +415,7 @@ void MathCursor::paste(MathGridInset const & data) // single cell/part of cell paste(data.cell(0)); } else { - // mulitple cells + // multiple cells idx_type idx; // index of upper left cell MathGridInset * p = enclosingGrid(idx); col_type const numcols = min(data.ncols(), p->ncols() - p->col(idx)); diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 02decd07b5..aa9c09cbed 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -320,7 +320,7 @@ Token const & Parser::getToken() void Parser::skipSpaces() { - while (nextToken().cat() == catSpace) + while (nextToken().cat() == catSpace || nextToken().cat() == catNewline) getToken(); }