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

Commit 9f5dd7d

Browse files
authored
[Bug 21044] Prevent loss of trailing empty lines by formatting script
http://quality.livecode.com/show_bug.cgi?id=21044
1 parent 886f418 commit 9f5dd7d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)