mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 16:40:24 +08:00
Use csv.QUOTE_MINIMAL for .to_csv(...)
This commit is contained in:
@@ -170,7 +170,9 @@ class Container(object):
|
||||
|
||||
cols = CSV_COLS_REQUIRED + list(filter(serializer.attr_filter, non_req_cols))
|
||||
|
||||
w = csv.DictWriter(stream, fieldnames=cols, extrasaction="ignore")
|
||||
w = csv.DictWriter(
|
||||
stream, fieldnames=cols, extrasaction="ignore", quoting=csv.QUOTE_MINIMAL
|
||||
)
|
||||
w.writeheader()
|
||||
w.writerows(serialized)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user