mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 20:03:18 +00:00
Fix newline recognition in the trackplacer
This commit is contained in:
parent
304fd2d380
commit
79c9219d72
@ -222,7 +222,7 @@ class JourneyTracks:
|
||||
"Initialize a journey from map and track information."
|
||||
if type(fp) == type(""):
|
||||
try:
|
||||
fp = open(fp)
|
||||
fp = open(fp, "rU")
|
||||
except IOError:
|
||||
raise IOException("Cannot read file.", fp)
|
||||
if self.tracks:
|
||||
|
Loading…
x
Reference in New Issue
Block a user