_census_tags instead of using _is_block_tag, it was using old code to determinate if a tag was a block tag.
This commit is contained in:
parent
cfd7564c9a
commit
4a3ecebeb8
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ class Renderer(object):
|
|||
"""
|
||||
for tag in self._tags_in_document(document):
|
||||
content = tag.childNodes[0].data.strip()
|
||||
block_tag = re.findall(r'(?is)^{%[^{}]*%}$', content)
|
||||
block_tag = self._is_block_tag(content)
|
||||
|
||||
self._inc_node_tags_count(tag.parentNode, block_tag)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue