diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-12-27 19:19:59 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-12-27 19:19:59 -0500 |
| commit | 32480497b7b7a8927ea9dd32bb09fd39e7cf9e1c (patch) | |
| tree | 28d73e0a7de04516e490822996469690f837554a /gemtext.py | |
| parent | b186fa5d56fb4c45d9973fe731f81185d8882d72 (diff) | |
| download | browset-32480497b7b7a8927ea9dd32bb09fd39e7cf9e1c.tar.gz | |
gemtext: Fix link lines being duplicated
Diffstat (limited to 'gemtext.py')
| -rw-r--r-- | gemtext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemtext.py b/gemtext.py index 6c7dfca..5c28e16 100644 --- a/gemtext.py +++ b/gemtext.py @@ -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) |
