Merge branch 'develop' into enhancement/helper-template-data-method

This commit is contained in:
Jakub Trllo 2025-02-04 11:47:39 +01:00 committed by GitHub
commit dfa060081d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -587,8 +587,8 @@ class FormattingPart:
if sub_key < 0:
sub_key = len(value) + sub_key
invalid = 0 > sub_key < len(data)
if invalid:
valid = 0 <= sub_key < len(value)
if not valid:
used_keys.append(sub_key)
missing_key = True
break