diff --git a/app.py b/app.py index c4d9db4..c756219 100644 --- a/app.py +++ b/app.py @@ -371,7 +371,7 @@ class WikiApp(Flask): comment = comments[-1] if comments else None # Insert the table before the comment - if comment: + if comment and table is not None: comment.insert_before(table.extract()) return soup.prettify() diff --git a/static/assets/styles.css b/static/assets/styles.css index 988ba2c..6ec9034 100644 --- a/static/assets/styles.css +++ b/static/assets/styles.css @@ -13,6 +13,10 @@ body { height: 100vh; } +.table-cont { + overflow-wrap: anywhere; +} + .main-cont { display: flex; flex-direction: column;