Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/textproto: unclear statement about ReadContinuedLine #32493
From the documentation:
I can't make sense of the above statement.
var txt string txt += "A \n" // line 1 txt += " \n" // line 2 txt += " B\n" // line 3 tp := textproto.NewReader(bufio.NewReader(strings.NewReader(txt))) s, err := tp.ReadContinuedLine() fmt.Printf("%q %v\n", s, err)
Line 2 consists of only white space but it is "continued" (as it should be, I think).
EDIT: It should probably read: "An empty line is never continued".