Fix rendering in main.go - separators never handled in formally correct way.
This commit is contained in:
@@ -181,6 +181,8 @@ func main() {
|
||||
for num, app := range Conf.Apps {
|
||||
var b lib.I3BarOutBlock
|
||||
|
||||
b.FullText = app.FullText
|
||||
|
||||
if num == 0 {
|
||||
b.FullText = fmt.Sprintf(
|
||||
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
|
||||
@@ -189,13 +191,11 @@ func main() {
|
||||
Conf.AppButtons.Separator.Left.Font,
|
||||
Conf.AppButtons.Separator.Left.FontSize,
|
||||
Conf.AppButtons.Separator.Left.Symbol,
|
||||
)
|
||||
) + b.FullText
|
||||
}
|
||||
|
||||
b.FullText = app.FullText
|
||||
|
||||
if num == len(Conf.Apps)-1 {
|
||||
b.FullText = fmt.Sprintf(
|
||||
b.FullText += fmt.Sprintf(
|
||||
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
|
||||
Conf.AppButtons.Separator.Right.Color,
|
||||
Conf.AppButtons.Separator.Right.Background,
|
||||
|
||||
Reference in New Issue
Block a user