help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: p tags and indenting in Html Mode


From: Pascal J. Bourguignon
Subject: Re: p tags and indenting in Html Mode
Date: Mon, 31 Aug 2009 13:07:43 +0200
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

Tyler Smith <tyler.smith@eku.edu> writes:
> Html mode recognizes that <p> tags don't need to be closed, so
> successive tags get indented to the same level. But when an unclosed
> <p> tag is followed by a heading (e.g., <h3>), the heading gets
> indented as if it were within the previous <p>, as do all subsequent
> tags that aren't <p> tags. In other words, the heading is indented
> further than the <p> 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.

-- 
__Pascal Bourguignon__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]