Skip to content

Commit

Permalink
Fix separating
Browse files Browse the repository at this point in the history
  • Loading branch information
weilycoder committed Nov 20, 2024
1 parent 26e5b8d commit 8ad4a6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cyaron/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def __write_list(self, file: IOBase, *args, **kwargs):
for arg in args:
if arg != "\n" and not self.is_first_char.get(file, True):
file.write(separator)
self.is_first_char[file] = True
if list_like(arg):
self.__write_list(file, *arg, separator=separators)
else:
Expand Down

0 comments on commit 8ad4a6b

Please sign in to comment.