Skip to content

missing guard for arbitrary "s within a csv field. #2663

Description

@sten0

hledger 1.52.1-g3834a163b-20260428, linux-x86_64 (official Docker image)

Minimal reproducer:

"Date","Activity","Symbol","Symbol Description","Quantity","Price","Settlement Date","Account","Value","Currency","Description"
"June 1, 2026","Buy","AAA","Example ETF","5","10.56","June 2, 2026","00000001","-52.8","COIN","Example ETF UNSOLICITED WE ACTED AS PRINCIPAL "ISSUER CONNECTED TO THE HUMBLE BANK INC."",

That's valid CSV, so hledger import should handle it, and it seems like multiple quotes per CSV field are not yet correctly guarded.

Date Activity Symbol Symbol Description Quantity Price Settlement Date Account Value Currency Description
June 1, 2026 Buy AAA Example ETF 5 10.56 June 2, 2026 00000001 -52.8 COIN Example ETF UNSOLICITED WE ACTED AS PRINCIPAL "ISSUER CONNECTED TO THE HUMBLE BANK INC."

[edit: drop extra quotes from "Date" in table]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WISHSome kind of improvement request or proposal.csvThe csv file format, csv output format, or generally CSV-related.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions