Fix #2018 ([ERROR] CSSValue: Missing token for production Choice)

This commit is contained in:
Kovid Goyal 2009-03-08 10:53:11 -07:00
parent 1ee09b1930
commit 0f1414679e

View File

@ -859,7 +859,7 @@ class Processor(Parser):
except ValueError: except ValueError:
setting = '' setting = ''
face = font.attrib.pop('face', None) face = font.attrib.pop('face', None)
if face is not None: if face:
faces = [] faces = []
for face in face.split(','): for face in face.split(','):
face = face.strip() face = face.strip()