aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-30 09:42:36 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit854e55cd8577baa24a2f3bd00e4ed8687e150f36 (patch)
tree4a2cf04e71928b7cde58c0a837fdac8ee8caef9a /src/emitter.rs
parentbbb00e4a029187ec9e0998639d3470f463c4a798 (diff)
fix: most error spans mistakenly being empty
With codespan_reporting an empty span shows up exactly like a one-byte span, which is why I didn't notice this mistake earlier.
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index a014025..d28b11b 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -339,7 +339,7 @@ impl<O: Offset> Emitter<O> for DefaultEmitter<O> {
*self_closing = true;
}
Token::EndTag(_) => {
- self.emit_error(Error::EndTagWithTrailingSolidus, offset - 1..offset - 1);
+ self.emit_error(Error::EndTagWithTrailingSolidus, offset - 1..offset);
}
_ => {
debug_assert!(false);