On Sun, 1 Jun 2014 20:58:06 +0200
Václav Valíček <[email protected]> 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
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to