mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] parser: correctly parse pre node within a div with new lines
This commit is contained in:
committed by
Aaron Bohy
parent
c1a973a4d8
commit
3c12519277
@@ -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>"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user