2
3
réplica de https://github.com/sammy-ette/Hilbish sincronizado 2025-08-10 02:52:03 +00:00

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

This reverts commit 3f1f6985119d73a00e9150d244fc108914e49de5.
removes the newlines, dont do this for now
Este cometimento está contido em:
TorchedSammy 2021-12-07 17:08:25 -04:00
ascendente 3f1f698511
cometimento 82b4fa5e7c
Assinados por: sammyette
ID da chave GPG: 904FC49417B44DCD

Ver ficheiro

@ -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:]