Formatting a TSV with long cells with column makes its readability very low. It simply breaks lines like this:
$ python3 -c 'for i in (1,2,3): print(((str(i)*50)+"\t")*3)' | column -s $'\t' -t
11111111111111111111111111111111111111111111111111 11111111111111111111111111111111111111111111111111 1111111111111111111
1111111111111111111111111111111
22222222222222222222222222222222222222222222222222 22222222222222222222222222222222222222222222222222 2222222222222222222
2222222222222222222222222222222
33333333333333333333333333333333333333333333333333 33333333333333333333333333333333333333333333333333 3333333333333333333
3333333333333333333333333333333
My question is, how do I format tsv (most likely csv as well) files, to make sure that when a maximum cell length (that can be set with a parameter) is reached, it's not just a line break, but data will start in a new line with the same indentation.
For above data, the result could be something like:
1111111111 1111111111 1111111111
1111111111 1111111111 1111111111
1111111111 1111111111 1111111111
1111111111 1111111111 1111111111
1111111111 1111111111 1111111111
2222222222 2222222222 2222222222
2222222222 2222222222 2222222222
2222222222 2222222222 2222222222
2222222222 2222222222 2222222222
2222222222 2222222222 2222222222
3333333333 3333333333 3333333333
3333333333 3333333333 3333333333
3333333333 3333333333 3333333333
3333333333 3333333333 3333333333
3333333333 3333333333 3333333333