godoc: remove more global variables
More moves into Corpus and Presentation.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/11492043
diff --git a/godoc/tab.go b/godoc/tab.go
index 012fab6..7973b74 100644
--- a/godoc/tab.go
+++ b/godoc/tab.go
@@ -16,6 +16,7 @@
output io.Writer
state int // indenting or collecting
indent int // valid if state == indenting
+ p *Presentation
}
func (p *tconv) writeIndent() (err error) {
@@ -44,7 +45,7 @@
case indenting:
switch b {
case '\t':
- p.indent += TabWidth
+ p.indent += p.p.TabWidth
case '\n':
p.indent = 0
if _, err = p.output.Write(data[n : n+1]); err != nil {