unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: 6822@debbugs.gnu.org
Subject: bug#6822: comment-padding skips first char in html-mode
Date: Sun, 18 Jul 2021 14:51:30 +0200	[thread overview]
Message-ID: <87k0lnss31.fsf@gnus.org> (raw)
In-Reply-To: <AANLkTik3rJX45_khaYZdqE+GzaT7Q09iw+rLguVsA9Wa@mail.gmail.com> (Lennart Borgman's message of "Sat, 7 Aug 2010 23:35:14 +0200")

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





      parent reply	other threads:[~2021-07-18 12:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-07 21:35 bug#6822: comment-padding skips first char in html-mode Lennart Borgman
2010-08-08 23:37 ` Chong Yidong
2010-08-09  8:35   ` Stefan Monnier
2021-07-18 12:51 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0lnss31.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=6822@debbugs.gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).