Output file has an additional blank line
Ninelpienel opened this issue · 4 comments
Subdigest doesn't do anything special in this regard, so this may be a result of the upstream ass
library. Haven't tried to reproduce it yet, however.
Myaamori-Aegisub-Scripts/scripts/sub-digest/subdigest.py
Lines 565 to 566 in f2a52ee
Just a guess, but perhaps this line?
Yeah, that should be it. Called from dubdigest via
Myaamori-Aegisub-Scripts/scripts/sub-digest/subdigest.py
Lines 512 to 517 in f2a52ee
Subdigest would also do better in using the dump_file
method with the file it wants to write to directly instead of always writing to a StringIO
first and then writing that. Catching the warning may be necessary for writing to stdout, though iirc we fixed overreporting with that warning a while ago. Could also be that it only occurs on Windows, though.