Broken project to implement a cross-protocol browser in textual
Diffstat (limited to 'gemtext.py')
| -rw-r--r-- | gemtext.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,10 +14,10 @@ class Gemtext(Static): line = line.decode("UTF-8") if line.startswith("=>"): path = line[2:].lstrip().split(' ')[0] - text = ' '.join(line[2:].lstrip().split(' ')[1:]) + text = ' '.join(line[2:].lstrip().split(' ')[1:]).rstrip("\r\n") self.mount(Button(text or path, name=path)) else: - self.mount(Static(line)) + self.mount(Static(line.rstrip("\r\n"))) if __name__ == "__main__": from textual.app import App |