Add newline to string formatting

This commit is contained in:
lel 2019-09-28 02:04:45 -04:00
parent 998b25cdb6
commit 12587685d4
1 changed files with 2 additions and 2 deletions

View File

@ -153,9 +153,9 @@ class GeminiItem():
def to_map_line(self, name=None):
if name or self.name:
return "=> {} {}".format(self.url, name or self.name)
return "=> {} {}\n".format(self.url, name or self.name)
else:
return "=> {}".format(self.url)
return "=> {}\n".format(self.url)
@classmethod
def from_map_line(cls, line, origin_gi):