From c12c31e1b2d55fa407217c0e14c51c8693f919ae Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 5 Oct 2022 17:12:20 +0200 Subject: Add support for form feeds as html whitespace --- tests/test_utils/to_swc.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_utils') diff --git a/tests/test_utils/to_swc.rs b/tests/test_utils/to_swc.rs index 6ed48b6..6c7312b 100644 --- a/tests/test_utils/to_swc.rs +++ b/tests/test_utils/to_swc.rs @@ -530,8 +530,7 @@ fn inter_element_whitespace(value: &str) -> bool { while index < bytes.len() { match bytes[index] { - // To do: form feed. - b'\t' | b'\r' | b'\n' | b' ' => {} + b'\t' | 0x0C | b'\r' | b'\n' | b' ' => {} _ => return false, } index += 1; -- cgit