diff options
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 3359637..b41c208 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -171,7 +171,9 @@ where Ok(ControlToken::Continue) => (), Ok(ControlToken::Eof) => { self.eof = true; - self.machine.emitter.emit_eof(); + self.machine + .emitter + .emit_eof(self.machine.reader_position()); } Ok(ControlToken::CdataOpen) => return Some(Ok(Event::CdataOpen)), } |