all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* p tags and indenting in Html Mode
@ 2009-08-30 19:17 Tyler Smith
  0 siblings, 0 replies; 15+ messages in thread
From: Tyler Smith @ 2009-08-30 19:17 UTC (permalink / raw)
  To: Emacs Help

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







^ permalink raw reply	[flat|nested] 15+ messages in thread
* p tags and indenting in Html Mode
@ 2009-08-31  0:48 Tyler Smith
  0 siblings, 0 replies; 15+ messages in thread
From: Tyler Smith @ 2009-08-31  0:48 UTC (permalink / raw)
  To: Emacs Help

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








^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <mailman.5697.1251714881.2239.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2009-09-02 15:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-30 19:17 p tags and indenting in Html Mode Tyler Smith
  -- strict thread matches above, loose matches on Subject: below --
2009-08-31  0:48 Tyler Smith
     [not found] <mailman.5697.1251714881.2239.help-gnu-emacs@gnu.org>
2009-08-31 11:07 ` 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

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.