diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-06-23 14:18:41 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2025-06-23 14:18:41 +0200 |
| commit | fbb02f40d96e0a9d41d19a575fca4d8e9c344119 (patch) | |
| tree | 1b7612c907dab8b4ad9938590839711bf6e60182 /crates/typst-html | |
| parent | e9dc4bb20404037cf192c19f00a010ff3bb1a10b (diff) | |
Consistent codepoint formatting in HTML and PDF error messages
Diffstat (limited to 'crates/typst-html')
| -rw-r--r-- | crates/typst-html/src/encode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(()) } |
