From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: p tags and indenting in Html Mode Date: Mon, 31 Aug 2009 13:58:57 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <7ctyzop7gg.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251723074 13443 80.91.229.12 (31 Aug 2009 12:51:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 12:51:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 31 14:51:07 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mi6Lf-0000gm-52 for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 14:51:03 +0200 Original-Received: from localhost ([127.0.0.1]:54829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi6Le-0008Ex-BT for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Aug 2009 08:51:02 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.eternal-september.org U2FsdGVkX1+UwDp3p7jwNMQayUhRiy7gI9swaY9dY7eHBBMY7Dxt7GXM3dTcNB/ZkcbcHmyEyLyH9T/XgfmMjFYB1UcqoRqiwERiP8WNgzVoJvR3UnvRfypX/R90ykHSe5z55AFGxoM= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Mon, 31 Aug 2009 11:58:58 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19IeedRB1ddyQ/PrD8TemC8xna4bHFyJj4= Cancel-Lock: sha1:fevlhFVXT7e4+WdDBh+5UiD4dIY= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:172541 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67682 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > Tyler Smith writes: >> Html mode recognizes that

tags don't need to be closed, so >> successive tags get indented to the same level. But when an unclosed >>

tag is followed by a heading (e.g.,

), the heading gets >> indented as if it were within the previous

, as do all subsequent >> tags that aren't

tags. In other words, the heading is indented >> further than the

tags that were there before. How can I get html >> mode to keep the indentation at the same level? I put a small example >> below to clarify. >> >> I've tried google and the mail archives, but searching on html mode, p >> tags, indenting etc. gave me lots of apparently unrelated info. Thanks >> for your help! > > Close your tags! So your html becomes more compatible with xhtml. A lot of web designers don't go anyway near xhtml because it's a pain and doesn't work properly anywhere other than in theory :-; A google for "xhtml not working" tells you why. Having said that closing tags is a better idea.