"unicode/utf8"
)
+const (
+ punchedCardWidth = 80 // These things just won't leave us alone.
+ indentedWidth = punchedCardWidth - len(indent)
+ indent = " "
+)
+
type Package struct {
writer io.Writer // Destination for output.
name string // Package name, json for encoding/json.
}
if comment != "" {
pkg.newlines(2) // Guarantee blank line before comment.
- doc.ToText(&pkg.buf, comment, " ", "\t", 80)
+ doc.ToText(&pkg.buf, comment, " ", indent, indentedWidth)
}
pkg.newlines(1)
}
pkg.packageClause(false)
}
- doc.ToText(&pkg.buf, pkg.doc.Doc, "", "\t", 80)
+ doc.ToText(&pkg.buf, pkg.doc.Doc, "", indent, indentedWidth)
pkg.newlines(1)
if !pkg.showInternals() {