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

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

Re: Linebreaks in XML files.


From: Michael Slass
Subject: Re: Linebreaks in XML files.
Date: Mon, 24 May 2004 18:17:28 GMT
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

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


reply via email to

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