mirror of https://github.com/Hilbis/Hilbish
fix(docgen): revert "fix(docgen): trim trailing space from doc comments"
This reverts commit 3f1f698511
.
removes the newlines, dont do this for now
dev
parent
3f1f698511
commit
82b4fa5e7c
|
@ -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:]
|
||||
|
||||
|
|
Loading…
Reference in New Issue