unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Moore, Mathew L" <MooreML@BATTELLE.ORG>
Subject: SGML/XML: fill-paragraph between start and end tags
Date: Wed, 03 Mar 2004 10:35:48 -0500	[thread overview]
Message-ID: <D0DB062F3B1EE24E8A171F220FF12BDE07CB15@ws-bco-mse4.milky-way.battelle.org> (raw)

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	other threads:[~2004-03-03 15:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03 15:35 Moore, Mathew L [this message]
2004-03-05 16:47 ` SGML/XML: fill-paragraph between start and end tags Jeffery B. Rancier
     [not found] <mailman.1096.1078485135.340.help-gnu-emacs@gnu.org>
2004-03-05 14:28 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2004-03-09 14:18 Moore, Mathew L

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D0DB062F3B1EE24E8A171F220FF12BDE07CB15@ws-bco-mse4.milky-way.battelle.org \
    --to=mooreml@battelle.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).