mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
skip whitespace only tokens
This commit is contained in:
parent
b353dfed7b
commit
a09c170808
@ -810,6 +810,9 @@ def _recombine_set_tokens(tokens: List[str]) -> List[str]:
|
||||
previous_token = token
|
||||
continue
|
||||
|
||||
if not token.strip():
|
||||
continue
|
||||
|
||||
if token in keywords:
|
||||
tokens.appendleft(token)
|
||||
if previous_token is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user