diff --git a/src/opencmo/web/app.py b/src/opencmo/web/app.py index fafea19..491332d 100644 --- a/src/opencmo/web/app.py +++ b/src/opencmo/web/app.py @@ -886,9 +886,14 @@ def _replace_metadata(rendered: str, replacements: list[tuple[str, str]]) -> str def _replace_static_site_copy(rendered: str, static_copy: str) -> str: + # Match the real element, which carries translate="yes" — NOT the bare + # `
` mentioned inside the head comment. Matching + # the comment text would extend `.*?
` from inside the comment to the + # real , swallowing the closing `-->`, the module