diff options
Diffstat (limited to 'gemtext.py')
| -rw-r--r-- | gemtext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gemtext.py b/gemtext.py index 959f565..c20b5b1 100644 --- a/gemtext.py +++ b/gemtext.py @@ -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 |
