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