diff --git a/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript b/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript index 813af67a6a..52258e9aac 100644 --- a/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript +++ b/Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript @@ -694,6 +694,8 @@ private function textFormatSelection pText put return & tTextLines[tIndex] after tResult end repeat + if line -1 of pText = "" then put cr after tResult + return tResult end textFormatSelection diff --git a/notes/bugfix-21044.md b/notes/bugfix-21044.md new file mode 100644 index 0000000000..19b80ee9b4 --- /dev/null +++ b/notes/bugfix-21044.md @@ -0,0 +1 @@ +# Prevent removal of trailing empty lines when formatting script