Merge pull request 'Make style generator handle the default section properly.' (#3) from renderer-options into master
Reviewed-on: raoul/python-chordpro#3
This commit is contained in:
commit
2bcfdaf0de
@ -414,6 +414,10 @@ def get_option_groups():
|
|||||||
def make_style(name, font=None, size=None, is_bold=None, is_centered=None, is_upper=None, indent=None):
|
def make_style(name, font=None, size=None, is_bold=None, is_centered=None, is_upper=None, indent=None):
|
||||||
"""Build a CSS style"""
|
"""Build a CSS style"""
|
||||||
styles = []
|
styles = []
|
||||||
|
if name == 'default':
|
||||||
|
styles.append('html, body, * {')
|
||||||
|
else:
|
||||||
|
styles.append('.{name} {{'.format(name=name))
|
||||||
if font:
|
if font:
|
||||||
styles.append(' font-family: \'{font}\';'.format(font=font))
|
styles.append(' font-family: \'{font}\';'.format(font=font))
|
||||||
if size:
|
if size:
|
||||||
|
Loading…
Reference in New Issue
Block a user