Eli Zaretskii wrote: >> I'm attaching a small test file that shows the problem. > > Your test file doesn't show a problem for me, neither with Emacs 26.1 Try running unix2dos on it, as attached.