Merge pull request 'Fix render options in CLI and when generating styles in HTML' (#6) from fix-render-options into master

Reviewed-on: #6
This commit is contained in:
raoul 2021-09-12 03:13:23 +00:00
commit 034b73496b
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: