Browse Source

transform_options is private

pull/190/head
Oliverpool 9 years ago
parent
commit
c06d1a4866
  1. 6
      patacrep/templates.py

6
patacrep/templates.py

@ -264,7 +264,7 @@ class TexBookRenderer(Renderer):
output.write(self.template.render(context)) output.write(self.template.render(context))
def transform_options(config, equivalents): def _transform_options(config, equivalents):
""" """
Get the equivalent name of the checked options Get the equivalent name of the checked options
""" """
@ -285,14 +285,14 @@ def iter_bookoptions(config):
'pictures': 'pictures', 'pictures': 'pictures',
'onesongperpage': 'onesongperpage', 'onesongperpage': 'onesongperpage',
} }
yield from transform_options(config['book'], book_equivalents) yield from _transform_options(config['book'], book_equivalents)
chords_equivalents = { chords_equivalents = {
'lilypond': 'lilypond', 'lilypond': 'lilypond',
'tablatures': 'tabs', 'tablatures': 'tabs',
'repeatchords': 'repeatchords', 'repeatchords': 'repeatchords',
} }
yield from transform_options(config['chords'], chords_equivalents) yield from _transform_options(config['chords'], chords_equivalents)
if config['chords']['show']: if config['chords']['show']:
if config['chords']['diagramreminder'] == "important": if config['chords']['diagramreminder'] == "important":

Loading…
Cancel
Save