Thanks for apply.

Invented new problem with this - PO Checker - if I change number of %s, it causes error... I have idea to replace %s with another symbol or sequence of symbols. First suggestion is to use <br> which is well known from HTML... Or \n from bash/php/js... Any other suggestions?

Václav Valíček
vac...@valicek.name

Dne 2.6.2014 12:26, Mattias Gaertner napsal(a):
On Sun, 1 Jun 2014 20:58:06 +0200
Václav Valíček <vac...@valicek.name> wrote:

While trying to adapt notice about not legal translation, I have found
that I have to add new lines to licence text.... And it is problem,
because of Format function (ide/sourceeditor.pp:4011) - it would case
missmatch.

Code:
    Txt:=CommentText(LCLProc.BreakString(
Format(Notice,[#13#13,#13#13,#13#13,#13#13,#13#13]),
             FEditor.RightEdge-2,0),CommentType);

Isn't it silly to change it just to?:
    Txt:=CommentText(LCLProc.BreakString(
             StringReplace(Notice, '%s', sLineBreak, [rfReplaceAll]),
             FEditor.RightEdge-2,0),CommentType);
I applied that.


Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to