[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6822: comment-padding skips first char in html-mode
From: |
Lars Ingebrigtsen |
Subject: |
bug#6822: comment-padding skips first char in html-mode |
Date: |
Sun, 18 Jul 2021 14:51:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lennart Borgman <lennart.borgman@gmail.com> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#6822: comment-padding skips first char in html-mode,
Lars Ingebrigtsen <=