diff --git a/src/mawek/body.py b/src/mawek/body.py index 27a62633d..f1cfc531a 100644 --- a/src/mawek/body.py +++ b/src/mawek/body.py @@ -4,6 +4,7 @@ def wrap_tables(content): + """Wrap elements in
.""" soup = BeautifulSoup(content, "html.parser") for table in soup.find_all("table"): diff --git a/src/mawek/code.py b/src/mawek/code.py index d332db0ab..0fb680d0d 100644 --- a/src/mawek/code.py +++ b/src/mawek/code.py @@ -1,9 +1,9 @@ """Get information about the under-use pygments theme.""" -from pygments.style import Style from pygments.token import Text def get_pygments_style_colors(style, *, fallbacks): + """Get background/foreground colors for given pygments style.""" background = style.background_color text_colors = style.style_for_token(Text) foreground = text_colors["color"]