File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ fn main() {
79
79
let mut depth = 0 ;
80
80
for e in parser . events () {
81
81
match e {
82
- StartElement ( name , _ , _ ) => {
82
+ StartElement { ref name , ref attributes , ref namespace } => {
83
83
println! (" {}/{}" , indent (depth ), name );
84
84
depth += 1 ;
85
85
}
Original file line number Diff line number Diff line change @@ -439,6 +439,11 @@ impl PullParser {
439
439
self . append_str_continue ( t. to_string ( ) . as_slice ( ) )
440
440
}
441
441
442
+ ReferenceEnd => { // Semi-colon in a text outside an entity
443
+ self . inside_whitespace = false ;
444
+ self . append_str_continue ( ";" )
445
+ }
446
+
442
447
CommentStart if self . config . coalesce_characters && self . config . ignore_comments => {
443
448
// We need to disable lexing errors inside comments
444
449
self . lexer . disable_errors ( ) ;
You can’t perform that action at this time.
0 commit comments