diff --git a/sphinx/transforms/i18n.py b/sphinx/transforms/i18n.py index 6c97793cf6f..0c3d8ef6a90 100644 --- a/sphinx/transforms/i18n.py +++ b/sphinx/transforms/i18n.py @@ -9,7 +9,7 @@ """ from os import path -from re import match, MULTILINE +from re import match, DOTALL from textwrap import indent from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, TypeVar @@ -84,7 +84,7 @@ def publish_msgstr(app: "Sphinx", source: str, source_path: str, source_line: in def parse_noqa(source: str) -> Tuple[str, bool]: - m = match(r"(.*)(?