Fix bgcolor[].

This commit is contained in:
luk3yx 2019-12-17 09:20:58 +13:00
parent 09d076e1d2
commit 125f259a13
2 changed files with 8 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -86,6 +86,13 @@ def _background9_hook(params):
param.append(('middle_y2', 'number'))
yield params
# Fix bgcolor
@hook('bgcolor')
def _bgcolor_hook(params):
yield params
for i in range(1, len(params)):
yield params[:-i]
def _raw_parse(data):
data = data.split('\nElements\n--------\n', 1)[-1].split('\n----', 1)[0]
for line in data.split('\n'):