From 20f7aee4f33d1e6a5f463faff3bdf8600e1a551f Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sat, 11 Sep 2021 20:12:59 -0700 Subject: [PATCH] Fix render options in CLI and when generating styles in HTML --- src/igitar/cli.py | 4 ++-- src/igitar/renderers/html.py | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/igitar/cli.py b/src/igitar/cli.py index 72a2a6c..f424f62 100644 --- a/src/igitar/cli.py +++ b/src/igitar/cli.py @@ -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) diff --git a/src/igitar/renderers/html.py b/src/igitar/renderers/html.py index 6b00d89..7971142 100644 --- a/src/igitar/renderers/html.py +++ b/src/igitar/renderers/html.py @@ -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: -- 2.45.2