You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you find a fix for this? I am having this issue as well
+++++ EDIT 3 hours later, back with a fix. From my research, it looks like an issue dealing with how the DBF file is read, and then how the csv writer saves the file.
I went into the code, and under the __convert function, I added "lineterminator='\n'," to the csv.Dictwriter for output_writer.
Then, when running the code, I had to add -q all argument so that it didn't get messed up
No more double lines for me.
So my output_writer part of the function looks like this now:
output_writer = csv.DictWriter(output_file,
quoting=args.quoting,
escapechar=args.escape_char,
delimiter=args.delimiter_char,
lineterminator='\n',
fieldnames=[encode_decode(x) for x in input_reader.field_names])
After a file has been converted, a new line is add after every line of content.
This behavior makes annoying the CSV usability without removing the additional lines.
Thank's in advance.
The text was updated successfully, but these errors were encountered: