Browse Source

Typo (#18)

pull/22/head
Louis 11 years ago
parent
commit
c53b235cc0
  1. 4
      songbook_core/templates.py

4
songbook_core/templates.py

@ -123,8 +123,8 @@ class TexRenderer(object):
templates = self.get_templates(self.template) templates = self.get_templates(self.template)
templates |= set([self.template.name]) templates |= set([self.template.name])
variables = {} variables = {}
regex = re.compile(r'\(% variables %\)\n(?P<variables>.*)' regex = re.compile(r'\(* variables *\)\n(?P<variables>.*)'
'\(% endvariables %\)', re.DOTALL) '\(* endvariables *\)', re.DOTALL)
for template_name in templates: for template_name in templates:
filename = self.texenv.get_template(template_name).filename filename = self.texenv.get_template(template_name).filename
with open(filename, 'r') as template_file: with open(filename, 'r') as template_file:

Loading…
Cancel
Save