Skip to content

Commit

Permalink
Fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
grewn0uille committed Jan 19, 2024
1 parent d1025b8 commit b8be8d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tinycss2/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ def _consume_declaration_in_list(first_token, tokens, allow_nested):
if token == ';':
break
other_declaration_tokens.append(token)
declaration = _parse_declaration(first_token, iter(other_declaration_tokens))
declaration = _parse_declaration(
first_token, iter(other_declaration_tokens))
if not allow_nested or isinstance(declaration, Declaration):
return declaration
else:
return _consume_rule(first_token, chain(other_declaration_tokens, tokens))
return _consume_rule(
first_token, chain(other_declaration_tokens, tokens))


def parse_blocks_contents(input, skip_comments=False, skip_whitespace=False):
Expand Down

0 comments on commit b8be8d1

Please sign in to comment.