Skip to content

Commit

Permalink
fix handling Q[..] parameter in colspec
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Sep 8, 2024
1 parent 7c86de6 commit 688e70d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tablemanipulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ QStringList LatexTables::splitColDef(QString def)
if (ch == ']')
sqrBracket--;
if ((ch.isLetter() || ch == ']') && !inAt && !inDef && curl == 0 && sqrBracket == 0) {
if ((ch == 's' || ch == 'S' || ch == 'X') && i + 1 < def.length() && def.at(i + 1) == '[')
if ((ch == 's' || ch == 'S' || ch == 'X' || ch == 'Q') && i + 1 < def.length() && def.at(i + 1) == '[')
continue;
if ((i + 1 < def.length()) && def.at(i + 1) == '{') {
appendDef = true;
Expand Down

0 comments on commit 688e70d

Please sign in to comment.