aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-05 17:12:20 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-05 17:12:20 +0200
commitc12c31e1b2d55fa407217c0e14c51c8693f919ae (patch)
tree1a578aac5ea3efb413d12cc190db805a20a4520d /tests/test_utils
parente50fb638f73528e96ceb88f7c3feee613c397344 (diff)
downloadmarkdown-rs-c12c31e1b2d55fa407217c0e14c51c8693f919ae.tar.gz
markdown-rs-c12c31e1b2d55fa407217c0e14c51c8693f919ae.tar.bz2
markdown-rs-c12c31e1b2d55fa407217c0e14c51c8693f919ae.zip
Add support for form feeds as html whitespace
Diffstat (limited to '')
-rw-r--r--tests/test_utils/to_swc.rs3
1 files changed, 1 insertions, 2 deletions
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;