More debug output and servers refresh fix.

Fixed servers lists refresh. Despite on what list we're updating
(all servers or only favorites) server item should be updated in
both.
This commit is contained in:
pztrn committed 2016-10-07 02:50:52 +05:00
1 parent baf733f171
commit 51b23fa68f
4 files changed
+35 -23

No files matched your search

+4 -1
View File
@@ -23,6 +23,9 @@ type Colorizer struct {
func (c *Colorizer) Fix(data string) string {
result := ""
data = html.EscapeString(data)
data_splitted := strings.Split(data, "^")
if len(data_splitted) > 1 {
for item := range data_splitted {
@@ -32,7 +35,7 @@ func (c *Colorizer) Fix(data string) string {
if !ok {
colorcode = "#000000"
}
result += "<span foreground=\"" + colorcode + "\">" + html.EscapeString(string([]rune(data_splitted[item])[1:])) + "</span>"
result += "<span foreground=\"" + colorcode + "\">" + string([]rune(data_splitted[item])[1:]) + "</span>"
} else {
result += data_splitted[item]
}