diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-12-24 06:44:38 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-12-24 06:44:38 -0500 |
| commit | 1a2eaf6f305bd95debc0409639627bcb9cb8e6fc (patch) | |
| tree | 8ef2de45cb22d356820c2edc66672a37a4f8c97a /gemtext.py | |
| parent | 259946e39ff7382a84a432a300c92d0f3744f12d (diff) | |
| download | browset-1a2eaf6f305bd95debc0409639627bcb9cb8e6fc.tar.gz | |
browset: Improve appearance
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 |
