fix(docgen): revert "fix(docgen): trim trailing space from doc comments"

This reverts commit 3f1f698511.
removes the newlines, dont do this for now
dev
TorchedSammy 2021-12-07 17:08:25 -04:00
parent 3f1f698511
commit 82b4fa5e7c
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 5 deletions

View File

@ -53,8 +53,7 @@ func main() {
mod := l
if strings.HasPrefix(t.Name, "hl") { mod = "hilbish" }
if !strings.HasPrefix(t.Name, prefix[mod]) || t.Name == "Loader" { continue }
docParts := strings.TrimSpace(t.Doc)
parts := strings.Split(docParts, "\n")
parts := strings.Split(t.Doc, "\n")
funcsig := parts[0]
doc := parts[1:]
@ -63,9 +62,7 @@ func main() {
for _, t := range p.Types {
for _, m := range t.Methods {
if !strings.HasPrefix(m.Name, prefix[l]) || m.Name == "Loader" { continue }
// trim extra spaces from the doc
docParts := strings.TrimSpace(m.Doc)
parts := strings.Split(docParts, "\n")
parts := strings.Split(m.Doc, "\n")
funcsig := parts[0]
doc := parts[1:]