From the documentation:
A line consisting of only white space is never continued.
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)
Prints "A B" <nil> (https://play.golang.org/p/Bsrs8-5bAft).
Line 2 consists of only white space but it is "continued" (as it should be, I think).
I propose to clarify or remove the statement in question.
EDIT: It should probably read: "An empty line is never continued".
From the documentation:
I can't make sense of the above statement.
Prints
"A B" <nil>(https://play.golang.org/p/Bsrs8-5bAft).Line 2 consists of only white space but it is "continued" (as it should be, I think).
I propose to clarify
or removethe statement in question.EDIT: It should probably read: "An empty line is never continued".