[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
p tags and indenting in Html Mode
From: |
Tyler Smith |
Subject: |
p tags and indenting in Html Mode |
Date: |
Sun, 30 Aug 2009 15:17:40 -0400 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Hi,
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!
Tyler
GNU Emacs 22.3.1 (i386-mingw-nt6.0.6002) of 2008-09-06
Windows Vista
(I know this is not the newest version of Emacs, but until I get time to
get my work machine switched over to Debian I'm stuck with this)
what I get now:
<h3 id="catalog">Catalog Description</h3>
<p>Prerequisite: BIO 121. Structure and functions vascular plants;
morphology, classification, life histories,
ecology and evolution of autotrophs, plantlike protists, and
fungi. 3 Lec/3 Lab.
<h3 id="location">When and Where</h3>
<dl>
<dt>Lectures, Moore 123:</dt><dd>Tuesday and Thursday, 9:30 to
10:45</dd>
<dt>Labs, Moore 202:</dt><dd>Tuesday 12:30 to 3:15</dd>
</dl>
<h3 id="textbook">Textbooks</h3>
<p>blah blah blah
What I'd like:
<h3 id="catalog">Catalog Description</h3>
<p>Prerequisite: BIO 121. Structure and functions vascular plants;
morphology, classification, life histories,
ecology and evolution of autotrophs, plantlike protists, and
fungi. 3 Lec/3 Lab.
<h3 id="location">When and Where</h3>
<dl>
<dt>Lectures, Moore 123:</dt><dd>Tuesday and Thursday, 9:30 to
10:45</dd>
<dt>Labs, Moore 202:</dt><dd>Tuesday 12:30 to 3:15</dd>
</dl>
<h3 id="textbook">Textbooks</h3>
<p>blah blah blah
- p tags and indenting in Html Mode,
Tyler Smith <=