Format previous commit
This commit is contained in:
parent
f2246b832d
commit
f8887eb7ac
|
@ -238,7 +238,9 @@ if args.address_file.suffix == ".csv":
|
|||
csv_filename = args.address_file
|
||||
elif args.address_file.suffix == ".ods":
|
||||
# https://help.libreoffice.org/latest/en-US/text/shared/guide/csv_params.html
|
||||
export_options = "csv:Text - txt - csv (StarCalc):" + ",".join( # Magic CSV export string
|
||||
export_options = (
|
||||
"csv:Text - txt - csv (StarCalc):"
|
||||
+ ",".join( # Magic CSV export string
|
||||
[
|
||||
str(ord(",")), # Field Separator
|
||||
str(ord('"')), # Text Delimiter
|
||||
|
@ -254,6 +256,7 @@ elif args.address_file.suffix == ".ods":
|
|||
"-1", # Export sheets - all sheets => -1
|
||||
]
|
||||
)
|
||||
)
|
||||
result = subprocess.run(
|
||||
[
|
||||
"libreoffice",
|
||||
|
|
Loading…
Reference in a new issue