Export histogram: fix blank lines on Windows

For the Python 3 case in issue #6096 following the
instructions of zjw and the Python 3 manual.
This commit is contained in:
Anders Jonsson 2024-06-27 19:09:54 +02:00 committed by Alx Sa
parent 87eadbf5d1
commit 7f9e819b50
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def histogram_export(procedure, img, layers, gio_file,
channels_gimp += [Gimp.HistogramChannel.ALPHA]
try:
with open(gio_file.get_path(), "wt") as hfile:
with open(gio_file.get_path(), "wt", newline="") as hfile:
writer = csv.writer(hfile)
histo_proc = Gimp.get_pdb().lookup_procedure('gimp-drawable-histogram')
histo_config = histo_proc.create_config()