mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 23:19:12 +02:00
TurboPower_ipro: Avoid insertion of empty line into word-wrapped long text copied to clipboard. Replace literal "#13#10" by "LineEnding"
git-svn-id: trunk@50135 -
This commit is contained in:
parent
06bdecede0
commit
8b28bc8ddd
@ -9122,10 +9122,12 @@ begin
|
||||
for i := StartSelIndex to EndSelIndex do begin
|
||||
CurElem := PIpHtmlElement(FLayouter.FElementQueue[i]);
|
||||
R := CurElem.WordRect2;
|
||||
{ wp: removed because this would add an empty line to a long word-wrapped text
|
||||
if not LFDone and (R.Top <> LastY) then begin
|
||||
S := S + #13#10;
|
||||
S := S + LineEnding;
|
||||
LFDone := True;
|
||||
end;
|
||||
}
|
||||
case CurElem.ElementType of
|
||||
etWord :
|
||||
begin
|
||||
@ -9139,7 +9141,7 @@ begin
|
||||
end;
|
||||
etSoftLF..etClearBoth :
|
||||
if not LFDone then begin
|
||||
S := S + #13#10;
|
||||
S := S + LineEnding;
|
||||
LFDone := True;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user