[qmtest] Format of XML test file
Mark Mitchell
mark at codesourcery.com
Thu Dec 19 07:49:57 UTC 2002
--On Thursday, December 19, 2002 10:52:04 AM +0300 Vladimir Prus
<ghost at cs.msu.su> wrote:
>
> I see that new QMTest does not pretty-print XML document that
> it writes. They all become one long line. As the result,
> editing them by hand is very hard, and I'd like to do that
> sometimes.
>
> Is this hard/undesirable to change?
It's desirable to change this, but it's non-trivial. We switched to
Python's standard XML-writing package, and this is how it does it. We
need to insert elements in the DOM that contain spaces/carriage-returns.
It should be possible to write a generic pretty-printing routine to do
this, but we don't have one yet.
(It's also might be bad to full indent everything; that could increase
the size of the files a lot.)
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the qmtest
mailing list