diff --git a/Telegram/SourceFiles/ayu/features/translator/implementations/google.cpp b/Telegram/SourceFiles/ayu/features/translator/implementations/google.cpp index 9284b7deaa..94451417b6 100644 --- a/Telegram/SourceFiles/ayu/features/translator/implementations/google.cpp +++ b/Telegram/SourceFiles/ayu/features/translator/implementations/google.cpp @@ -88,7 +88,10 @@ QPointer GoogleTranslator::startSingleTranslation( const auto from = fromLang.trimmed().isEmpty() ? QStringLiteral("auto") : fromLang.trimmed(); const auto to = toLang.trimmed(); - const auto preparedText = shouldWrapInHtml() ? Html::entitiesToHtml(text) : text.text; + auto textToTranslate = text.text; + textToTranslate = textToTranslate.replace(qsl("\n"), qsl("
")); + + const auto preparedText = textToTranslate; QJsonArray requestRoot; QJsonArray requestPayload; QJsonArray requestText;