diff options
Diffstat (limited to 'libgo/go/net/textproto/writer.go')
-rw-r--r-- | libgo/go/net/textproto/writer.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/net/textproto/writer.go b/libgo/go/net/textproto/writer.go index 1bc5974c6c2..33c146c0220 100644 --- a/libgo/go/net/textproto/writer.go +++ b/libgo/go/net/textproto/writer.go @@ -58,7 +58,8 @@ type dotWriter struct { } const ( - wstateBeginLine = iota // beginning of line; initial state; must be zero + wstateBegin = iota // initial state; must be zero + wstateBeginLine // beginning of line wstateCR // wrote \r (possibly at end of line) wstateData // writing data in middle of line ) @@ -68,7 +69,7 @@ func (d *dotWriter) Write(b []byte) (n int, err error) { for n < len(b) { c := b[n] switch d.state { - case wstateBeginLine: + case wstateBegin, wstateBeginLine: d.state = wstateData if c == '.' { // escape leading dot |