summaryrefslogtreecommitdiff
path: root/coverage/templite.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/templite.py')
-rw-r--r--coverage/templite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/templite.py b/coverage/templite.py
index ec84507..2eab864 100644
--- a/coverage/templite.py
+++ b/coverage/templite.py
@@ -40,7 +40,7 @@ class Templite(object):
"""Convert Django-style data references into Python-native ones."""
# Pull out loops.
text = re.sub(
- r"{% for ([a-z0-9_]+) in ([a-z0-9_.|]+) %}(.*){% endfor %}",
+ r"(?s){% for ([a-z0-9_]+) in ([a-z0-9_.|]+) %}(.*?){% endfor %}",
self._loop_repl, text
)
# Protect actual percent signs in the text.