fix: create talbe fields area support blank on left bracket
This commit is contained in:
parent
48444f2aca
commit
1b2ac1e537
|
@ -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 ++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue