1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00

fixed issue#234 (#235)

This commit is contained in:
regr4 2021-05-07 04:26:34 +02:00 committed by GitHub
parent a4a56a6c05
commit da88c1b20a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,6 +234,15 @@ func convertRegularGemini(s string, numLinks, width int, proxied bool) (string,
wrappedItem[0] = fmt.Sprintf(" [%s]\u2022", config.GetColorString("list_text")) + wrappedItem[0] = fmt.Sprintf(" [%s]\u2022", config.GetColorString("list_text")) +
wrappedItem[0] + "[-]" wrappedItem[0] + "[-]"
wrappedLines = append(wrappedLines, wrappedItem...) wrappedLines = append(wrappedLines, wrappedItem...)
} else {
wrappedItem := wrapLine(lines[i][1:], width,
fmt.Sprintf(" [%s]", config.GetColorString("list_text")),
"[-]", false)
// Add "*"
wrappedItem[0] = fmt.Sprintf(" [%s]*", config.GetColorString("list_text")) +
wrappedItem[0] + "[-]"
wrappedLines = append(wrappedLines, wrappedItem...)
} }
// Optionally list lines could be colored here too, if color is enabled // Optionally list lines could be colored here too, if color is enabled
} else if strings.HasPrefix(lines[i], ">") { } else if strings.HasPrefix(lines[i], ">") {