| c = ' '; // terminate digit string with a space | c = ' '; // terminate digit string with a space | ||||
| space_inserted = 1; | space_inserted = 1; | ||||
| } | } | ||||
| } else { | |||||
| if (prev_in != ',') { | |||||
| } else { // Prev output is not digit | |||||
| if (prev_in == ',') { | |||||
| // Workaround for several consecutive commas — | |||||
| // replace current character with space | |||||
| if (c == ',') | |||||
| c = ' '; | |||||
| } else { | |||||
| decimal_sep_count = 0; | decimal_sep_count = 0; | ||||
| } | } | ||||
| } | } |