From 63f6fc9e7d65a05c444219be23b5b6662132cb61 Mon Sep 17 00:00:00 2001 From: caandt Date: Tue, 15 Oct 2024 20:53:41 -0500 Subject: [PATCH] minimal styling --- build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index cde107f..6fb4866 100644 --- a/build.py +++ b/build.py @@ -37,10 +37,9 @@ def minify(html): code.string = new tab = True code.unwrap() - if tab: - tab = soup.new_tag('style') - tab.string = '*{tab-size:4}' - soup.insert(1, tab) + sty = soup.new_tag('style') + sty.string = '*{tab-size:4;max-width:1000px}' if tab else '*{max-width:1000px}' + soup.insert(1, sty) for tag in soup.find_all(True): tag.attrs = {k: v for k, v in tag.attrs.items() if k != 'class'} return minify_html.minify(str(soup))