Make style generator handle the default section properly. #3

Merged
raoul merged 1 commits from renderer-options into master 2021-08-31 23:39:22 +00:00

View File

@ -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: