mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 07:59:35 +02:00
LCL/Grids: Add grid option goCopyWithoutTrailingLinebreak to avoid copying cells to the clipboard with trailing linebreak.
This commit is contained in:
parent
9ec85e5d2a
commit
fb8756e03b
@ -123,7 +123,8 @@ type
|
||||
goScrollToLastCol, // Allow scrolling to last column (so that last column can be LeftCol)
|
||||
goScrollToLastRow, // Allow scrolling to last row (so that last row can be TopRow)
|
||||
goEditorParentColor, // Set editor's ParentColor to True
|
||||
goEditorParentFont // Set editor's ParentFont to True
|
||||
goEditorParentFont, // Set editor's ParentFont to True
|
||||
goCopyWithoutTrailingLinebreak // Copy to clipboard without trailing linebreak
|
||||
);
|
||||
TGridOptions2 = set of TGridOption2;
|
||||
|
||||
@ -11565,7 +11566,8 @@ begin
|
||||
SelStr := SelStr + #9;
|
||||
end;
|
||||
|
||||
SelStr := SelStr + sLineBreak;
|
||||
if (aRow < R.Bottom) or not (goCopyWithoutTrailingLinebreak in FOptions2) then
|
||||
SelStr := SelStr + sLineBreak;
|
||||
SelHTMLStr := SelHTMLStr + '</tr>' + #13#10;
|
||||
end;
|
||||
SelHTMLStr := SelHTMLStr + #13#10 + '</table>';
|
||||
|
Loading…
Reference in New Issue
Block a user