Boole215 / Lagann

A browser for gemini written in python
0 stars 0 forks source link

Relative links now work, tabs after link url formatting fixed #12

Closed Boole215 closed 2 years ago

Boole215 commented 2 years ago

Relative links now work as they should in the browser. LagannApp now takes the URL from the current center_page (really needs to be renamed), and appends the desired url to the end of it. It then passes this to the client through get_page().

There was a bug where links where not being formatted correctly due to multiple tabs being used to separate the URL the link leads to from the placeholder text. Such as b"=> "gemini://google.com/\t\tThis is the placeholder text". This text would have been formatted as" This is placeholder text", with an awkward space in the beginning. This was fixed by modifying the parsing rules in_gmi_parse_line()` from networking/client.py Closes #11

Modified: networking/client.py

networking/lagcerts.py

ui/view.py