Fix render options in CLI and when generating styles in HTML

This commit is contained in:
Raoul Snyman 2021-09-11 20:12:59 -07:00
parent cdfabbc95e
commit 20f7aee4f3
Signed by: raoul
GPG Key ID: F55BCED79626AE9C
2 changed files with 2 additions and 6 deletions

View File

@ -57,9 +57,9 @@ def main():
song = Song(args.input)
if args.format == 'text':
output = text_render(song, **render_params)
output = text_render(song, options=render_params)
else:
output = html_render(song, **render_params)
output = html_render(song, options=render_params)
if args.output:
with open(args.output, 'w') as output_file:
output_file.write(output)

View File

@ -445,10 +445,6 @@ def get_option_groups():
def make_style(name, font=None, size=None, is_bold=None, is_centered=None, is_upper=None, is_hidden=False, indent=None):
"""Build a CSS style"""
styles = []
if name == 'default':
styles.append('html, body, * {')
else:
styles.append('.{name} {{'.format(name=name))
if font:
styles.append(' font-family: \'{font}\';'.format(font=font))
if size: