wadetb / Sublime-Text-Advanced-CSV

Efficiently format, edit, arrange, and evaluate cells in CSV files
169 stars 14 forks source link

Add option for justifying columns with whitespace before field (after comma) #51

Open tyhenry opened 6 years ago

tyhenry commented 6 years ago

i.e.

John Doe    ,1  ,manager
John Doherty,200,employee

becomes

    John Doe,  1, manager
John Doherty,200,employee

This would help when parsing CSV files with Python's csv reader, which can ignore initial whitespace in a field, but not trailing whitespace (AFAIK):

https://docs.python.org/3/library/csv.html#csv.Dialect.skipinitialspace