mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-19 16:12:04 +02:00
16.0 vanila
This commit is contained in:
parent
956889352c
commit
2e65bf056a
17 changed files with 5293 additions and 17668 deletions
|
|
@ -17,7 +17,7 @@ def add_stripped_items_before(node, spec, extract):
|
|||
text = spec.text or ''
|
||||
|
||||
before_text = ''
|
||||
prev = node.getprevious()
|
||||
prev = next((n for n in node.itersiblings(preceding=True) if not (n.tag == etree.ProcessingInstruction and n.target == "apply-inheritance-specs-node-removal")), None)
|
||||
if prev is None:
|
||||
parent = node.getparent()
|
||||
result = parent.text and RSTRIP_REGEXP.search(parent.text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue