* Linebreaks in XML files.
@ 2004-05-24 11:48 Rob Kramer
2004-05-24 18:17 ` Michael Slass
0 siblings, 1 reply; 2+ messages in thread
From: Rob Kramer @ 2004-05-24 11:48 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linebreaks in XML files.
2004-05-24 11:48 Linebreaks in XML files Rob Kramer
@ 2004-05-24 18:17 ` Michael Slass
0 siblings, 0 replies; 2+ messages in thread
From: Michael Slass @ 2004-05-24 18:17 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-24 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-24 11:48 Linebreaks in XML files Rob Kramer
2004-05-24 18:17 ` Michael Slass
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).