You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When copy-pasting paragraphs, you won't get any hard newlines. This means all paragraphs will be merged. Even though not strictly the responsibility of this package, I would suggest adding a command that adds hard linebreaks at the end of paragraphs.
The text was updated successfully, but these errors were encountered:
I, too, stumbled on this problem. For now, I've bound M-S-q to the following function, to easily fix such paragraphs 'manually':
(defun use-hard-newlines-guess (&optional beg end &rest _ignore)
"Intuit hard newlines: mark as hard any newlines in region
that precede a paragraph-start line."
(interactive "r")
(save-restriction
(when (and beg end)
(narrow-to-region beg end))
;; re-enable the use-hard-newlines minor mode, requesting to guess
;; which newlines should be marked as hard
(use-hard-newlines -1 'guess)
(use-hard-newlines 1 'guess)
(messages-are-flowing--mark-hard-newlines (point-min) (point-max))))
The &rest _ignore is to support being added to the 'after-change-functions hook.
When copy-pasting paragraphs, you won't get any hard newlines. This means all paragraphs will be merged. Even though not strictly the responsibility of this package, I would suggest adding a command that adds hard linebreaks at the end of paragraphs.
The text was updated successfully, but these errors were encountered: