From e6b847f4d604199847f3d77b6ee3a4f0094678f3 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Wed, 30 Jul 2025 18:30:54 +0200 Subject: [PATCH] Remove extra spaces in the end of lines --- scripts/translate.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/translate.py b/scripts/translate.py index 17127fd74..2fdc18ca0 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -129,15 +129,15 @@ def translate_page( prompt_segments.extend( [ "There's an existing previous translation for this content that is probably outdated with old content or old instructions.", - "Update the translation only where necessary: ", - "- If the original English content has changed, reflect that in the translation. ", - "- If the previous translation violates current instructions, update it. ", - "- Otherwise, preserve the original translation **line-by-line** as-is. ", - "Do not: ", - "- Rephrase or rewrite correct lines just to improve the style. ", - "- Add or remove line breaks unless the English source changed. ", - "- Change formatting or whitespace unless absolutely required. ", - "Only change what must be changed. The goal is to minimize diffs for easier review. ", + "Update the translation only where necessary:", + "- If the original English content has changed, reflect that in the translation.", + "- If the previous translation violates current instructions, update it.", + "- Otherwise, preserve the original translation **line-by-line** as-is.", + "Do not:", + "- Rephrase or rewrite correct lines just to improve the style.", + "- Add or remove line breaks unless the English source changed.", + "- Change formatting or whitespace unless absolutely required.", + "Only change what must be changed. The goal is to minimize diffs for easier review.", "Previous translation:", f"%%%\n{old_translation}%%%", ]