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:
parent
a4a56a6c05
commit
da88c1b20a
@ -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], ">") {
|
||||||
|
Loading…
Reference in New Issue
Block a user