Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Leafpad 0.8.17 and CSV files format

3 views
Skip to first unread message

sub phil

unread,
Nov 24, 2009, 7:50:01 PM11/24/09
to
Leafpad 0.8.17

Just want to mention, that it would be pretty easy for Leafpad to support CSV files as they are just plain text files, which must be aligned in columns.

This would made Leafpad a light csv viewer.

Algorithm could be.
1/ Parse first line to count number of columns and define each column width.
2/ Parse all subsequent lines to find the max width for each columns.
3/ Display the columns with the appropriate width.

Example
col1;col2;col3
1234;a;airoro
12345;abcdefg;jfd

Would results into(hope file format is kept in emailing)
col1  ;col2   ;col3
1234 ;a      ;airoro
12345;abcdefg;jfd


Thanks for Leafpad.
0 new messages