diff --git a/8X.xml b/8X.xml index 3eb0ff4..6671931 100644 --- a/8X.xml +++ b/8X.xml @@ -755,6 +755,7 @@ + diff --git a/scripts/formats.py b/scripts/formats.py index 5c73eb0..912999b 100644 --- a/scripts/formats.py +++ b/scripts/formats.py @@ -57,7 +57,7 @@ def children(regex: str): # Require text to match regex def text(regex: str): - if not re.fullmatch(regex, element.text): + if not re.fullmatch(regex, element.text, flags=re.DOTALL): raise ValidationError(f"<{element.tag}> text '{element.text}' does not match r'{regex}'") # Check requirements for each tag @@ -102,13 +102,13 @@ def text(regex: str): children(r"" if for_73 else r"()*") case "name" if for_73: - text(r"[\S\s]+") + text(r".+") case "display": - text(r"[\S\s]+") + text(r".+") case "accessible": - text(r"[\u0000-\u00FF]*") + text(r"[\u0000-\u00FF]+") if element.text in all_names[version][lang]: raise ValidationError(f"{lang} accessible name '{element.text}' is not unique within {version}")