Skip to content
Snippets Groups Projects
Commit 7f8631a9 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] tools: properly verify the size of HTML nodes

Instead of checking the size of text only node, let the xml_translate verify it.

The size verification using etree was introduced at 40efdccc but was
probably too simple.
Since 45352512, this becomes redundant with the nonspace method which can
be extended.

The re.sub is still relevant as some terms may contain only non-alphanumeric and
use push_translation (e.g. '>=' as a selection or xml terms extracted by babel
in static repository)

closes odoo/odoo#29432
parent cd408083
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment