From 4a3ecebeb8f860cd9780c5bfbf76ca110d7bffd7 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 27 Dec 2015 08:57:54 -0600 Subject: [PATCH] _census_tags instead of using _is_block_tag, it was using old code to determinate if a tag was a block tag. --- secretary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secretary.py b/secretary.py index 99e65ce..8e7ecb7 100644 --- a/secretary.py +++ b/secretary.py @@ -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)