Skip to content

Commit d24965e

Browse files
committed
Apply keel bbcode changes
1 parent 93c1071 commit d24965e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/bbcode/formatter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ def render_quote(tag_name, value, options, parent, context):
122122

123123
@parser.formatter('size')
124124
def render_size(tag_name, value, options, parent, context):
125-
if 'size' not in options:
126-
size = '100'
125+
size = options.get('size', '100')
127126

128-
if (size := options['size']).isdigit():
127+
if size.isdigit():
129128
size = max(10, min(800, int(size)))
130129
return '<span style="font-size:%s%%;">%s</span>' % (size, value)
131130

0 commit comments

Comments
 (0)