~earboxer/browset

60ba340559cbdf8bbe660d35f1f01355c468faca — Zach DeCook 10 months ago 241528e
gemtext: allow tabs as link delimiters
1 files changed, 2 insertions(+), 2 deletions(-)

M mime/gemtext.py
M mime/gemtext.py => mime/gemtext.py +2 -2
@@ 25,8 25,8 @@ class Gemtext(Static):
            elif self.inPre:
                self.inPre.mount(Static(line, markup=False))
            elif line.startswith("=>"):
                path = line[2:].lstrip().split(' ')[0]
                text = ' '.join(line[2:].lstrip().split(' ')[1:])
                path = line[2:].lstrip().split(' ')[0].split('\t')[0]
                text = line[2:].lstrip()[len(path):].lstrip()
                self.mount(Button(Text(text or path,overflow="fold"), name=path))
            elif line.startswith("#"):
             count = line.split(' ')[0][0:3].count("#")