From df5b39f8c1cb6b3f3a8a19c5a4722433e2ef1dff Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 15 Jun 2022 12:13:02 +0200 Subject: Add tests for character reference * Fix encoding of character references * Fix unneeded remainder in `nok` state --- src/compiler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler.rs') diff --git a/src/compiler.rs b/src/compiler.rs index 2a3f101..6f0215c 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -374,7 +374,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St CharacterReferenceKind::Named => decode_named(ref_string), }; - buf_tail_mut(buffers).push(value); + buf_tail_mut(buffers).push(encode(&value)); character_reference_kind = None; } -- cgit