Subject: Re: bug#6822: comment-padding skips first char in html-mode

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 18 Jul 2021 14:51:30 +0200

Lennart Borgman <[email-masked]> writes:

> (setq comment-padding "xy")
>
> gives
>
> <!-- yy --> - html-mode

This should now be fixed in Emacs 28.  I think the current logic of
shortening the padding when it's spaces is fine -- we're a bit sloppy
when defining comments, so they're "<!-- " in html-mode, and the padding
is " ", but we don't want extra padding in that case, so
comment-padright/left shortens it.

But if the padding isn't spaces, then it shouldn't do the shortening, so
I've made that exact change.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no