From fbb02f40d96e0a9d41d19a575fca4d8e9c344119 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 23 Jun 2025 14:18:41 +0200 Subject: Consistent codepoint formatting in HTML and PDF error messages --- crates/typst-html/src/encode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/typst-html/src/encode.rs') diff --git a/crates/typst-html/src/encode.rs b/crates/typst-html/src/encode.rs index c6a6a7bc..eb25ab1e 100644 --- a/crates/typst-html/src/encode.rs +++ b/crates/typst-html/src/encode.rs @@ -165,7 +165,7 @@ fn write_escape(w: &mut Writer, c: char) -> StrResult<()> { c if charsets::is_w3c_text_char(c) && c != '\r' => { write!(w.buf, "&#x{:x};", c as u32).unwrap() } - _ => bail!("the character {} cannot be encoded in HTML", c.repr()), + _ => bail!("the character `{}` cannot be encoded in HTML", c.repr()), } Ok(()) } -- cgit v1.2.3