()
| 855 | } |
| 856 | |
| 857 | func (p *state) switchOver() { |
| 858 | if p.hasDetail { |
| 859 | return |
| 860 | } |
| 861 | p.headBuf = p.buf.Bytes() |
| 862 | p.buf = bytes.Buffer{} |
| 863 | p.notEmpty = false |
| 864 | p.hasDetail = true |
| 865 | |
| 866 | // One of the newlines is accounted for in the switch over. |
| 867 | // p.needNewline -= 1 |
| 868 | } |
| 869 | |
| 870 | func (s *printer) Detail() bool { |
| 871 | return ((*state)(s)).detail() |