From b595ca1959bfd2a20d77c928a90491bfe55ac75c Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Tue, 15 Feb 2022 19:37:11 +0100 Subject: [PATCH] fixups --- sphinx/transforms/i18n.py | 4 ++-- .../test-intl/xx/LC_MESSAGES/literalblock.po | 4 ++-- tests/roots/test-intl/xx/LC_MESSAGES/noqa.po | 15 ++++++--------- tests/test_intl.py | 13 +++++++------ 4 files changed, 17 insertions(+), 19 deletions(-) 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"(.*)(?