This repository was archived by the owner on May 2, 2026. It is now read-only.
Commit 4de4445
output: to_csv: print header for every set of parsed fields
When parsing multiple invoices it's *incorrect* to:
1. Display header with fields names of the *first* parsed invoice
2. Display content of *all* parsed invoices
It's because parsing dfferent invoices may result in different fields.
In such case header won't make sense for all rows.
To improve handling such situations display new header for every set of
fields that differs from the last one.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>1 parent bc667cf commit 4de4445
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
0 commit comments