From: Tyler Smith <tyler.smith@eku.edu>
To: Emacs Help <help-gnu-emacs@gnu.org>
Subject: p tags and indenting in Html Mode
Date: Sun, 30 Aug 2009 20:48:03 -0400 [thread overview]
Message-ID: <4A9B1DC3.3020704@eku.edu> (raw)
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>Structure and function of vascular plants.
<h3 id="location">When and Where</h3>
<dl>
<dt>Lectures, Moore 123:</dt><dd>Tuesday 9:30</dd>
<dt>Labs, Moore 202:</dt><dd>Tuesday 12:30</dd>
</dl>
<h3 id="textbook">Textbooks</h3>
<p>blah blah blah
What I'd like:
<h3 id="catalog">Catalog Description</h3>
<p>Structure and function of vascular plants.
<h3 id="location">When and Where</h3>
<dl>
<dt>Lectures, Moore 123:</dt><dd>Tuesday 9:30</dd>
<dt>Labs, Moore 202:</dt><dd>Tuesday 12:30</dd>
</dl>
<h3 id="textbook">Textbooks</h3>
<p>blah blah blah
next reply other threads:[~2009-08-31 0:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 0:48 Tyler Smith [this message]
[not found] <mailman.5697.1251714881.2239.help-gnu-emacs@gnu.org>
2009-08-31 11:07 ` p tags and indenting in Html Mode Pascal J. Bourguignon
2009-08-31 11:58 ` Richard Riley
2009-08-31 14:24 ` Tyler Smith
2009-09-01 22:31 ` Edward O'Connor
2009-08-31 22:27 ` Lennart Borgman
[not found] ` <mailman.5747.1251757661.2239.help-gnu-emacs@gnu.org>
2009-08-31 23:44 ` Richard Riley
2009-09-01 19:36 ` Tyler Smith
[not found] ` <mailman.5806.1251843008.2239.help-gnu-emacs@gnu.org>
2009-09-01 22:52 ` Richard Riley
2009-09-02 10:00 ` Lennart Borgman
2009-09-02 12:16 ` Richard Riley
2009-09-02 14:51 ` Lennart Borgman
2009-09-02 15:31 ` Richard Riley
2009-09-02 15:42 ` Lennart Borgman
-- strict thread matches above, loose matches on Subject: below --
2009-08-30 19:17 Tyler Smith
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=4A9B1DC3.3020704@eku.edu \
--to=tyler.smith@eku.edu \
--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.