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
Géry Debongnie
parent
247200194f
commit
c8db663869
@@ -298,6 +298,7 @@ function parseDOMNode(node: Element, ctx: ParsingContext): AST | null {
|
||||
if (tagName === "t" && !dynamicTag) {
|
||||
return null;
|
||||
}
|
||||
ctx = Object.assign({}, ctx);
|
||||
const children: AST[] = [];
|
||||
if (tagName === "pre") {
|
||||
ctx.inPreTag = true;
|
||||
|
||||
Reference in New Issue
Block a user