[FIX] parser: correctly parse pre node within a div with new lines

This commit is contained in:
Lucas Perais (lpe)
2021-12-02 18:06:03 +01:00
committed by Aaron Bohy
parent c1a973a4d8
commit 3c12519277
4 changed files with 46 additions and 0 deletions
+6
View File
@@ -39,4 +39,10 @@ describe("white space handling", () => {
</pre>`;
expect(renderToString(template3)).toBe(template3);
});
test("pre inside a div with a new line", () => {
expect(renderToString(`<div><pre>SomeText</pre>\n</div>`)).toBe(
"<div><pre>SomeText</pre></div>"
);
});
});