Skip to content

1.32: csv rules: adding a newline to comments disables field interpolation #2134

@simonmichael

Description

@simonmichael

From a report by pepe_pecas in chat:

2023-01-01,1
fields date, amount
account1 (a)
comment %date \n next line

Good:

$ hledger-1.31 -f a.csv print
2023-01-01  ; 2023-01-01
    ;  next line
    (a)               1

Bad:

$ hledger-1.32 -f a.csv print
2023-01-01  ; %date
    ;  next line
    (a)               1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..csvThe csv file format, csv output format, or generally CSV-related.regressionA backwards step, indicating a weakness in our QA. We don't like these.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions