` and `` now end the line and table cells are separated by a space, while a `
` or `
` inside ``, `Hello
",
- "expected": "Hello"
+ "expected": "Hello\n"
},
{
"input": "Hello
World
",
- "expected": "HelloWorld"
+ "expected": "Hello\nWorld\n"
},
{
"input": "Hello
Hidden
World
",
- "expected": "HelloWorld"
+ "expected": "Hello\nWorld\n"
},
{
"input": "Hello world
",
@@ -65,7 +65,7 @@
},
{
"input": "Hello
Hidden
World
",
- "expected": "HelloWorld"
+ "expected": "Hello\nWorld\n"
},
{
"input": "line one
line two
end",
@@ -77,7 +77,7 @@
},
{
"input": "",
- "expected": "Sale & more"
+ "expected": "Sale & more\n"
},
{
"input": "Before
Hello world
",
@@ -130,5 +130,37 @@
{
"input": "a
y",
"expected": "a"
+ },
+ {
+ "input": "One
Two
",
+ "expected": "One\nTwo\n"
+ },
+ {
+ "input": "",
+ "expected": "One\nTwo\n"
+ },
+ {
+ "input": "",
+ "expected": "One Two\nThree\n"
+ },
+ {
+ "input": "Title
Body
",
+ "expected": "Title\nBody\n"
+ },
+ {
+ "input": "Introend",
+ "expected": "Intro\nnested\ntail\nend"
+ },
+ {
+ "input": "a
b
",
+ "expected": "a\nb\n"
+ },
+ {
+ "input": "",
+ "expected": "Item Price\n"
+ },
+ {
+ "input": "Helloa
b | World!",
+ "expected": "Hello World!"
}
]
diff --git a/src/decoders/html/mod.rs b/src/decoders/html/mod.rs
index 0995104..9dcf6e3 100644
--- a/src/decoders/html/mod.rs
+++ b/src/decoders/html/mod.rs
@@ -22,8 +22,11 @@ const HTML_SUFFIX: &str = "