On Sat, Aug 31, 2024 at 3:55 AM Eli Zaretskii <[email protected]> wrote:
>
> Ping! How can we make progress with this issue?
>
Just FYI, for the time being I've been using this "return filter"
advice on eglot--format-markup which splits all lines irregardless of
the EOL marker and rejoins them with a newline. It's a bit
heavy-handed, but it gets the job done.
(defun init.el/fix-eol/eglot--format-markup (value)
(let ((strings (list value)))
(dolist (eol '("\r\n" "\n" "\r"))
(setq strings
(flatten-list (mapcar (lambda (value)
(split-string value eol))
strings))))
(string-join strings "\n")))
(advice-add 'eglot--format-markup :filter-return
#'init.el/fix-eol/eglot--format-markup)