Improve bookmarks

This commit is contained in:
Alex Kotov 2023-04-30 06:24:30 +04:00
parent be88605753
commit d2563df04d
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 5 additions and 1 deletions

View File

@ -136,7 +136,11 @@ func Bookmarks(t *tab) {
// Gather bookmarks
names, urls := bookmarks.All()
for i := range names {
bkmkPageRaw += fmt.Sprintf("=> %s %s\r\n", urls[i], names[i])
bkmkPageRaw += fmt.Sprintf("=> %s\r\n", urls[i])
if names[i] != "" {
bkmkPageRaw += fmt.Sprintf("%s\r\n", names[i])
}
bkmkPageRaw += fmt.Sprintf("\r\n")
}
// Render and display
content, links := renderer.RenderGemini(bkmkPageRaw, textWidth(), false)