Problem: I run a script to load data from a database. I delete all formulas from the data table. I copy the table script using the red triangle menu. I paste the table script into a script window. I run the script. The table resulting from the table script has different column grouping and throws the columns around (see screenshot showing Columns panel from original table and table as created by table script side by side. See also files attached for reference).

I initially suspected that this wass due to the table script not preserving leading whitespace in column names, but as the screenshot below shows, the leading whitespaces are indeed part of the table script, they are just not considered in the table re-created from the table script.

Is there some way to really recreate the original data table, including white spaces in column names or is that generally a poor scripting strategy?