Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 28086f0

Browse files
Merge pull request #1926 from BerndN/patch-3
[Bug 21044] Prevent loss of trailing empty lines by formatting script
2 parents a596cf3 + e5307fd commit 28086f0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,8 @@ private function textFormatSelection pText
694694
put return & tTextLines[tIndex] after tResult
695695
end repeat
696696

697+
if line -1 of pText = "" then put cr after tResult
698+
697699
return tResult
698700
end textFormatSelection
699701

notes/bugfix-21044.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Prevent removal of trailing empty lines when formatting script

0 commit comments

Comments
 (0)