From: Michael Slass <miknrene@drizzle.com>
Subject: Re: Linebreaks in XML files.
Date: Mon, 24 May 2004 18:17:28 GMT [thread overview]
Message-ID: <m3pt8tadvr.fsf@eric.rossnet.com> (raw)
In-Reply-To: Iilsc.16130474$Of.2690575@news.easynews.com
Rob Kramer <robk@starhub.net.sg> writes:
>Hi all,
>
>Is there some way to have emacs properly indent a XML file that consists of
>just a single line (i.e. no breaks)? I tried PSGML 1.3.1, but can't figure
>out if this sort of formatting is possible.
>
>Cheers,
>
> Rob
You could break up the tags into one-line-each with
(replace-regexp ">\\s-*<" ">\n<" nil (point-min) (point-max))
and then indent the buffer per psgml mode.
--
Mike Slass
prev parent reply other threads:[~2004-05-24 18:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-24 11:48 Linebreaks in XML files Rob Kramer
2004-05-24 18:17 ` Michael Slass [this message]
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=m3pt8tadvr.fsf@eric.rossnet.com \
--to=miknrene@drizzle.com \
/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).