1
0
Эх сурвалжийг харах

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 сар өмнө
parent
commit
c03029d80f

+ 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;
 }
 //---------------------------------------------------------------------------