diff --git a/src/pkg/xml/xml.go b/src/pkg/xml/xml.go index b8809422d8..202cd46262 100644 --- a/src/pkg/xml/xml.go +++ b/src/pkg/xml/xml.go @@ -497,11 +497,11 @@ func (p *Parser) RawToken() (Token, os.Error) { case '[': // - Some text here. + ` @@ -52,7 +52,9 @@ var rawTokens = []Token{ EndElement{Name{"", "outer"}}, CharData(strings.Bytes("\n ")), StartElement{Name{"tag", "name"}, nil}, - CharData(strings.Bytes("\n Some text here.\n ")), + CharData(strings.Bytes("\n ")), + CharData(strings.Bytes("Some text here.")), + CharData(strings.Bytes("\n ")), EndElement{Name{"tag", "name"}}, CharData(strings.Bytes("\n")), EndElement{Name{"", "body"}}, @@ -83,7 +85,9 @@ var cookedTokens = []Token{ EndElement{Name{"ns2", "outer"}}, CharData(strings.Bytes("\n ")), StartElement{Name{"ns3", "name"}, nil}, - CharData(strings.Bytes("\n Some text here.\n ")), + CharData(strings.Bytes("\n ")), + CharData(strings.Bytes("Some text here.")), + CharData(strings.Bytes("\n ")), EndElement{Name{"ns3", "name"}}, CharData(strings.Bytes("\n")), EndElement{Name{"ns2", "body"}},