diff --git a/.gitignore b/.gitignore index 55b0589..efdd129 100644 --- a/.gitignore +++ b/.gitignore @@ -443,4 +443,6 @@ pip-selfcheck.json django_project/local/ .data +.static +.media db.sqlite diff --git a/tinywiki/parser/bbcode/text_formatters.py b/tinywiki/parser/bbcode/text_formatters.py index ffa8706..8acd09a 100644 --- a/tinywiki/parser/bbcode/text_formatters.py +++ b/tinywiki/parser/bbcode/text_formatters.py @@ -404,7 +404,6 @@ def render_youtube_video(tag_name: str, value, options, parent, context): div_classes = [] div_styles = [] - if 'width' in options: _w = options['width'] if _w.endswith('px') or _w.endswith('em') or _w.endswith('rem'): @@ -476,7 +475,7 @@ def render_youtube_video(tag_name: str, value, options, parent, context): div_style = "" if settings.USE_BOOTSTRAP: return f"""
- +
""" # noqa: E501 else: return f'
' # noqa: E501