You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libfec's CSV writer emits trailing commas for empty fields at the end of records. FastFEC strips trailing empty fields, producing no trailing comma. Both are valid CSV, but the outputs won't byte-match.
This affects header.csv (where report_id, report_number, comment are often empty) and data rows where trailing fields are empty (common in itemization schedules which have many optional fields at the end).
Note
Much of this ticket was composed with Claude
libfec's CSV writer emits trailing commas for empty fields at the end of records. FastFEC strips trailing empty fields, producing no trailing comma. Both are valid CSV, but the outputs won't byte-match.
This affects
header.csv(wherereport_id,report_number,commentare often empty) and data rows where trailing fields are empty (common in itemization schedules which have many optional fields at the end).Affected Filing
Filing ID: 1935668 (237KB, Chevron PAC F3XN filing)
Reproduction
Observe the Difference
Suggested Fix
The
csv::Writerin Rust writes all fields including empty trailing ones. To match FastFEC, either: