From c53b235cc0c63ed7dd2b48ca5b5af14242b536bc Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 3 Apr 2014 13:14:39 +0200 Subject: [PATCH] Typo (#18) --- songbook_core/templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/songbook_core/templates.py b/songbook_core/templates.py index 98284759..d5ca00b2 100644 --- a/songbook_core/templates.py +++ b/songbook_core/templates.py @@ -123,8 +123,8 @@ class TexRenderer(object): templates = self.get_templates(self.template) templates |= set([self.template.name]) variables = {} - regex = re.compile(r'\(% variables %\)\n(?P.*)' - '\(% endvariables %\)', re.DOTALL) + regex = re.compile(r'\(* variables *\)\n(?P.*)' + '\(* endvariables *\)', re.DOTALL) for template_name in templates: filename = self.texenv.get_template(template_name).filename with open(filename, 'r') as template_file: