Format previous commit

This commit is contained in:
Skye 2023-12-07 18:18:17 -05:00
parent f2246b832d
commit f8887eb7ac

View file

@ -238,7 +238,9 @@ if args.address_file.suffix == ".csv":
csv_filename = args.address_file csv_filename = args.address_file
elif args.address_file.suffix == ".ods": elif args.address_file.suffix == ".ods":
# https://help.libreoffice.org/latest/en-US/text/shared/guide/csv_params.html # 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(",")), # Field Separator
str(ord('"')), # Text Delimiter str(ord('"')), # Text Delimiter
@ -254,6 +256,7 @@ elif args.address_file.suffix == ".ods":
"-1", # Export sheets - all sheets => -1 "-1", # Export sheets - all sheets => -1
] ]
) )
)
result = subprocess.run( result = subprocess.run(
[ [
"libreoffice", "libreoffice",