From b8be8d1808243736ea383f1764dd1eed10489c8c Mon Sep 17 00:00:00 2001 From: Lucie Anglade Date: Fri, 19 Jan 2024 19:05:52 +0100 Subject: [PATCH] Fix long lines --- tinycss2/parser.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tinycss2/parser.py b/tinycss2/parser.py index 60ef765..f371a9a 100644 --- a/tinycss2/parser.py +++ b/tinycss2/parser.py @@ -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):