Sorry, I missed your original request. This seems like a bug to me because multi-paragraph comment bodies are usually indented to align with the comment start token. If you strip trailing whitespace on save, this behavior results in bad comment indentation, something like: This is all from distant memory, so apologies if I'm describing it incorrectly. -Nate On Thu, Oct 1, 2020 at 8:12 AM Stefan Kangas wrote: > tags 16820 + wontfix notabug > close 16820 > thanks > > Stefan Kangas writes: > > > Nate Eagleson writes: > > > >> nxml-mode indents multiple lines in a comment block to match the > >> preceding line's indentation, even for blank lines. It should ignore > >> blank lines when determining indent level. > > [...] > >> > >> To reproduce: > >> > >> Start emacs with -Q. > >> > >> Create a new buffer. > >> > >> Start XML mode: M-x xml-mode > >> > >> Enter the following text: > >> > >> > >> > >> > >> > >> Put the cursor before '-->' and press Tab. It will indent to the same > >> level as '