mirror of
https://github.com/KevinMidboe/motdGOi.git
synced 2025-10-29 09:40:24 +00:00
fix bug
This commit is contained in:
2
font.go
2
font.go
@@ -104,7 +104,7 @@ func (this *fontManager) parseFontContent(cont string) (*font, error) {
|
|||||||
header := strings.Split(lines[0], " ")
|
header := strings.Split(lines[0], " ")
|
||||||
|
|
||||||
font := &font{}
|
font := &font{}
|
||||||
font.hardblank = header[0][len(header)-1:]
|
font.hardblank = header[0][len(header[0])-1:]
|
||||||
font.height, _ = strconv.Atoi(header[1])
|
font.height, _ = strconv.Atoi(header[1])
|
||||||
|
|
||||||
commentEndLine, _ := strconv.Atoi(header[5])
|
commentEndLine, _ := strconv.Atoi(header[5])
|
||||||
|
|||||||
Reference in New Issue
Block a user