浏览代码

Tolerate \n instead of \r\n

Seems to be the only place where we didn't handle \n instead of original \r\n in translations
(poedit does not like \r's in messages)

Source commit: 6728e48ccf12560cd0f6be17003fa3e334c979cf
Martin Prikryl 8 月之前
父节点
当前提交
c03029d80f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/forms/Preferences.cpp

+ 2 - 1
source/forms/Preferences.cpp

@@ -3434,7 +3434,8 @@ UnicodeString TPreferencesDialog::Bullet(const UnicodeString & S)
   {
     Result = Bullet + Result.SubString(Dash.Length() + 1, Result.Length() - Dash.Length());
   }
-  Result = ReplaceStr(Result, sLineBreak + Dash, sLineBreak + Bullet);
+  Result = ReplaceStr(Result, sLineBreak, L"\n");
+  Result = ReplaceStr(Result, L"\n" + Dash, sLineBreak + Bullet);
   return Result;
 }
 //---------------------------------------------------------------------------