Merge pull request #10 from cgrinds/patch-1
CDATA is overwritten, append instead
This commit is contained in:
		
						commit
						6de2878785
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -117,7 +117,7 @@ func (this *Document) LoadStream(r io.Reader, charset CharsetFunc) (err error) {
 | 
				
			||||||
		case xml.SyntaxError:
 | 
							case xml.SyntaxError:
 | 
				
			||||||
			return errors.New(tt.Error())
 | 
								return errors.New(tt.Error())
 | 
				
			||||||
		case xml.CharData:
 | 
							case xml.CharData:
 | 
				
			||||||
			ct.Value = strings.TrimSpace(string([]byte(tt)))
 | 
								ct.Value = ct.Value + strings.TrimSpace(string([]byte(tt)))
 | 
				
			||||||
		case xml.Comment:
 | 
							case xml.Comment:
 | 
				
			||||||
			t := NewNode(NT_COMMENT)
 | 
								t := NewNode(NT_COMMENT)
 | 
				
			||||||
			t.Value = strings.TrimSpace(string([]byte(tt)))
 | 
								t.Value = strings.TrimSpace(string([]byte(tt)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue