aswinkarthik / csvdiff

A fast diff tool for comparing csv files
https://aswinkarthik.github.io/csvdiff/
MIT License
527 stars 56 forks source link

Bug: TSV Separated formatter with rowmark produces comma separated output #68

Open gasperno opened 6 months ago

gasperno commented 6 months ago
% cat version1.tsv
col_1   col_2   col_3
123 001 2.33
234 002 4.55
123 003 6.77
% cat version2.tsv
col_1   col_2   col_3
234 003 4.55
123 003 6.78

When I execute csvdiff -p 0,1 -s ‘\t’ -o rowmark version1.tsv version2.tsv,

Expectation

234 003 4.55    ADDED
123 003 6.78    MODIFIED
234 002 4.55    DELETED
123 001 2.33    DELETED

Actual

234 003 4.55,ADDED
123 003 6.78,MODIFIED
234 002 4.55,DELETED
123 001 2.33,DELETED

Why?

This makes it consistent and easier to parse the output for further processing.