Add newline to bookmark formatting + fix crashes when going up from root + make going up work in an index w/ a trailing slash #2

Manually merged
solderpunk merged 5 commits from lel/AV-98:master into master 2019-10-06 14:36:08 +00:00
Showing only changes of commit 7997c40e94 - Show all commits

View File

@ -116,7 +116,7 @@ class GeminiItem():
pathbits.pop()
# Don't try to go higher than root
if len(pathbits) == 1:
return GeminiItem(self.url)
return self
# Get rid of bottom component
pathbits.pop()
new_path = os.path.join(*pathbits)