Browse Source

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 9 tháng trước cách đây
mục cha
commit
c03029d80f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;
 }
 //---------------------------------------------------------------------------