Skip to content

Commit

Permalink
refactor(config): simplify CSS processing by returning raw content, p…
Browse files Browse the repository at this point in the history
…repare to remove cssutils
  • Loading branch information
amnweb committed Jan 25, 2025
1 parent 0210573 commit 8ee9e81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def get_stylesheet(show_error_dialog=False) -> Union[str, None]:
try:
css_processor = CSSProcessor(styles_path)
css_content = css_processor.process()
parser = CSSParser(raiseExceptions=True, parseComments=False)
css_final = parser.parseString(css_content).cssText.decode('utf-8')
return css_final
#parser = CSSParser(raiseExceptions=True, parseComments=False)
#css_final = parser.parseString(css_content).cssText.decode('utf-8')
return css_content

except SyntaxErr as e:
logging.error(f"The file '{styles_path}' contains Syntax Error(s). Please fix:\n{str(e)}")
Expand Down

0 comments on commit 8ee9e81

Please # to comment.