all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Possible bugs with indentation in html mode
Date: Fri, 16 Feb 2007 23:41:00 -0500	[thread overview]
Message-ID: <jwvmz3dielm.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.4635.1171668686.2155.help-gnu-emacs@gnu.org

> I'm editing HTML code using emacs and I'm noticing some strange behavior
> with the indentation.

Emacs does not come with an HTML mode that provides indentation (unless
you're using a development version such as the soon-to-be-released
Emacs-22).  There are several packages out there that provide an HTML mode
with indentation.  So please tell us which HTML mode you're using.

> I can hit TAB on elements like "<table>" and "<tr>" and "<td>", and emacs
> will happily indent each by two spaces relative to the container tag,
> ending the additional space when it finds the corresponding closing tag.
> However, it does not handle single tags well (e.g. "<br>", "<meta...>",
> etc.).  Emacs adds the two-space indentation following one of these single
> tags and will not decrement the indentation unless a closing tag is found
> for some surrounding set of tags.

I believe the Emacs-22 HTML mode does handle those special tags correctly,
so I presume this is another mode you're talking about.


        Stefan

       reply	other threads:[~2007-02-17  4:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4635.1171668686.2155.help-gnu-emacs@gnu.org>
2007-02-17  4:41 ` Stefan Monnier [this message]
2007-02-17  5:57   ` Possible bugs with indentation in html mode Angela Bellavance
2007-02-17  6:37     ` Matthew Flaschen
2007-02-17 16:55     ` Stefan Monnier
     [not found]     ` <mailman.4641.1171694271.2155.help-gnu-emacs@gnu.org>
2007-02-17 16:58       ` RealityMonster
2007-02-16 23:31 Angela Bellavance

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

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

  git send-email \
    --in-reply-to=jwvmz3dielm.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.