fixed repeatIn with specified tag bug
lp bug: https://launchpad.net/bugs/592584 fixed bzr revid: viktor.nagy@toolpart.hu-20110722062748-pz8bp77myr4j3ge0
This commit is contained in:
parent
f59a0b6025
commit
62ba542130
|
@ -66,10 +66,12 @@ class report(object):
|
||||||
match = html_parents
|
match = html_parents
|
||||||
if txt.group(3):
|
if txt.group(3):
|
||||||
match = [txt.group(3)]
|
match = [txt.group(3)]
|
||||||
n = node
|
if match[0].startswith("'"):
|
||||||
while n.tag not in match:
|
match[0] = match[0][1:-1]
|
||||||
n = n.getparent()
|
n2= node
|
||||||
n.set('rml_loop', txt.group(2))
|
while n2.tag not in match:
|
||||||
|
n2 = n2.getparent()
|
||||||
|
n2.set('rml_loop', txt.group(2))
|
||||||
return '[['+txt.group(1)+"''"+txt.group(4)+']]'
|
return '[['+txt.group(1)+"''"+txt.group(4)+']]'
|
||||||
t = _regex1.sub(_sub1, node.text or node.tail)
|
t = _regex1.sub(_sub1, node.text or node.tail)
|
||||||
if t == " ":
|
if t == " ":
|
||||||
|
|
Loading…
Reference in New Issue