fix: create talbe fields area support blank on left bracket

This commit is contained in:
Alex Duan 2024-10-25 10:44:23 +08:00
parent 48444f2aca
commit 1b2ac1e537
1 changed files with 3 additions and 1 deletions

View File

@ -1732,7 +1732,9 @@ bool fieldOptionsArea(char* p) {
while(p2) { while(p2) {
p2 = strchr(p2, ' '); p2 = strchr(p2, ' ');
if (p2) { if (p2) {
if ((p2 - 1)[0] != ',') { // get prev char
char prec = *(p2 - 1);
if (prec != ',' && prec != '(') {
// blank if before comma, not calc count. like st(ts timestamp, age int + BLANK + TAB only two blank // blank if before comma, not calc count. like st(ts timestamp, age int + BLANK + TAB only two blank
cnt ++; cnt ++;
} }