comparison genshi/template/markup.py @ 874:fcf378812238

Fix for match template processing involving multiple match directives targetting the same element. Should close #370.
author cmlenz
date Thu, 15 Apr 2010 20:30:09 +0000
parents 1ea88e82713d
children 52d7d6b7b6c1
comparison
equal deleted inserted replaced
873:9786aa263217 874:fcf378812238
389 pass 389 pass
390 390
391 # Let the remaining match templates know about the last 391 # Let the remaining match templates know about the last
392 # event in the matched content, so they can update their 392 # event in the matched content, so they can update their
393 # internal state accordingly 393 # internal state accordingly
394 for test in [mt[0] for mt in match_templates]: 394 for test in [mt[0] for mt in match_templates[idx + 1:]]:
395 test(tail[0], namespaces, ctxt, updateonly=True) 395 test(tail[0], namespaces, ctxt, updateonly=True)
396 396
397 break 397 break
398 398
399 else: # no matches 399 else: # no matches
Copyright (C) 2012-2017 Edgewall Software