Skip to content

Commit

Permalink
split with splitlines() instead
Browse files Browse the repository at this point in the history
covers every possibility
  • Loading branch information
garret1317 committed Nov 2, 2024
1 parent 3c9a34d commit 17db405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deluge/ui/gtk3/createtorrentdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def on_button_add_clicked(self, widget):
*textview_buf.get_bounds(), include_hidden_chars=False
)
log.debug('Create torrent tracker lines: %s', trackers_text)
self.config['createtorrent.trackers'] = trackers_text.split('\n')
self.config['createtorrent.trackers'] = trackers_text.splitlines()

# Append trackers liststore with unique trackers and tiers starting from last tier number.
last_tier, orig_trackers = last_tier_trackers_from_liststore(
Expand Down

0 comments on commit 17db405

Please sign in to comment.