Emacs outline fails to preserve the final blank line after headings when moving subtrees up or down when the outline-blank-line variable is set to non-nil. Attached is a patch that resolves the issue. Steps to Reproduce: - Set outline-blank-line to a non-nil value (e.g., t). - Create an outline with multiple subtrees, ensuring a blank line between them. - Move an outline subtree up or down using the appropriate command (M-UP or M-DOWN). - Observe that the moved subtree may not include the final blank line. Expected Behavior: When moving outline subtrees up or down, Emacs should respect the outline-blank-line variable and ensure that the moved subtrees retain a blank line. Actual Behavior: The final blank line is omitted when moving outline subtrees, despite outline-blank-line being set to non-nil. Additional Information: Including a blank line when outline-blank-line is non-nil is important to maintain the structure of the document. Omitting it could cause subtrees to lose their separation, making the outline less readable. -- James Cherti GitHub: https://github.com/jamescherti Website: https://www.jamescherti.com/