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

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

SGML/XML: fill-paragraph between start and end tags


From: Moore, Mathew L
Subject: SGML/XML: fill-paragraph between start and end tags
Date: Wed, 03 Mar 2004 10:35:48 -0500

I am writing xml in sgml-mode.

Is there a convenient way to perform a fill-paragraph that operates only
between the start-tag and end-tag surrounding the current point?

If I have this:

<report>
  <title>This is a short tag</title>
  <description>
    <p>This is a long paragraph...</p>
  </description>
</report>

and do a fill-paragraph while the point is between the <p> and </p>,
then I get this,

<report>
  <title>This is a short tag</title>
  <description>
    <p>This is a long paragraph that needs to be
  filled only between the "p" tags.</p>
  </description> </report>

instead of the more preferable,

<report>
  <title>This is a short tag</title>
  <description>
    <p>This is a long paragraph that needs to be
    filled only between the "p" tags.</p>
  </description>
</report>

Thanks in advance,

--Matt Moore




reply via email to

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