Commit d1cb604
fix(export): neutralize formula-prefixed cells in csv export
A session title, project dir, or model name starting with =, +, -, @,
tab, or CR is executed as a formula when the exported CSV is opened in
Excel/LibreOffice/Sheets. Prefix such strings with an apostrophe on
export; strings that are plain numbers (a negative cost) pass through
untouched, and non-string cells are never affected.1 parent f2144a1 commit d1cb604
2 files changed
Lines changed: 57 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1872 | 1872 | | |
1873 | 1873 | | |
1874 | 1874 | | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
1875 | 1890 | | |
1876 | 1891 | | |
1877 | 1892 | | |
| |||
1886 | 1901 | | |
1887 | 1902 | | |
1888 | 1903 | | |
1889 | | - | |
| 1904 | + | |
1890 | 1905 | | |
1891 | 1906 | | |
1892 | 1907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3866 | 3866 | | |
3867 | 3867 | | |
3868 | 3868 | | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
| 3901 | + | |
| 3902 | + | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
3869 | 3910 | | |
3870 | 3911 | | |
3871 | 3912 | | |
| |||
0 commit comments