Broken project to implement a cross-protocol browser in textual
gemtext: Fix link lines being duplicated
| -rw-r--r-- | gemtext.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ class Gemtext(Static): path = line[2:].lstrip().split(' ')[0] text = ' '.join(line[2:].lstrip().split(' ')[1:]) self.mount(Button(text or path, name=path)) - if line.startswith("#"): + elif line.startswith("#"): count = line.split(' ')[0][0:3].count("#") w = Static(line.lstrip("#"), markup=False, classes="header h"+str(count)) self.mount(w) |