Housekeeping

This commit is contained in:
2024-09-12 09:06:33 +02:00
parent 901232d293
commit 5cafdbf239
3 changed files with 9 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ func ParseFile(filename string) (*Class, error) {
if class.Length() == 0 {
return nil, fmt.Errorf("no class found")
}
res.ClassName = class.Text()
res.ClassName = strings.TrimSpace(class.Text())
codeblocks := doc.Find("div.floatright > div.codecontainer")
if codeblocks.Length() == 0 {
@@ -156,7 +156,7 @@ func ParseFile(filename string) (*Class, error) {
res.Methods = append(res.Methods, method)
})
spew.Dump(res)
// spew.Dump(res)
return &res, nil
}