iamantony / qtcsv

Library for reading and writing csv-files in Qt.
MIT License
265 stars 141 forks source link

Option to not trim spaces #71

Open pozemka opened 3 years ago

pozemka commented 3 years ago

In some cases spaces should not be trimmed from strings when loading CSV. In my case I want to preserve this strings as is when loaded:

" lvl. %i"," niv. %i"," Level %i"

In current implementation starting spaces will be trimmed. So resulting QStringList will be:

"lvl. %i","niv. %i","Level %i"

It would be nice to have an option to keep or to trim said white-spaces