albertvaka / bettercounter

A daily counter to track habits
GNU General Public License v2.0
133 stars 15 forks source link

Export & import fail if counter name has a comma #25

Closed albertvaka closed 7 months ago

albertvaka commented 1 year ago

Since we export to CSV "by hand" and there's no escaping/unescaping, exported counters containing , can't be imported back because the comma is the field delimiter.

MikeStirner commented 7 months ago

Or could just disallow any counter with a comma in the name, but what about those that have already been created? Maybe a warning popup? It could say:

"Some of your counters contain commas which do not export then import again correctly. You may edit them if you wish."

Maybe most of us already know to avoid commas, though, so not a big deal.