Properly track which tokens are used for closing formats.

This commit is contained in:
Sergio Martínez Portela 2024-08-22 00:20:44 +02:00
parent 490b36887a
commit f31c64c242

View File

@ -1962,6 +1962,7 @@ def tokenize_contents(contents: str) -> List[TokenItems]:
cut_string()
tokens.append((TOKEN_TYPE_CLOSE_MARKER, char))
has_changed = True
closes.remove(i)
if not has_changed:
text.append(char)