From f4c4e7a31f1d7a7c7824d8d413367718c492d2bc Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Sun, 25 Sep 2022 10:39:19 +0200 Subject: [PATCH] Remove comments --- src/embed.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/embed.py b/src/embed.py index d676d1a..b0a3e5b 100644 --- a/src/embed.py +++ b/src/embed.py @@ -124,8 +124,6 @@ def embed_html_resources(html, base_dir, js): """Embed fonts in preload links to avoid jumps when loading""" # This cannot be done in JavaScript, it would be too late - # TODO set body.display = None? - import bs4 soup = bs4.BeautifulSoup(html, 'lxml') @@ -149,7 +147,6 @@ def to_data_uri(filename, mime_type=None): def embed_css_resources(css, filename): """Replace url() with url(data:;base64, ...)""" - # TODO handle @import # This uses some heuristics which could technically fail import re