- From: Charles Reitzel <creitzel@rcn.com>
- Date: Fri, 19 Jul 2002 11:01:33 -0400
- To: "Martin Dulisch" <mdulisch@s-und-n.de>
- Cc: <html-tidy@w3.org>
- Message-Id: <4.3.2.7.2.20020719104818.029a3310@pop.rcn.com>
Boy, I just checked in a fix to that "feature request" for C Tidy
yesterday! Anyway, it was fresh in my mind, so here is a diff to the Java
that will do the same thing.
It will print
<foo>
<bar />
<bar></bar>
</foo>
instead of
<foo>
<bar />
<bar>
</bar>
</foo>
take it easy,
Charlie
At 12:34 PM 7/19/2002 +0200, Martin Dulisch wrote:
>Hello,
>
>I am new on this list so I hope it is the right place to ask.
>
>I am formationg xml files with JTidy. I have 2 questions to the result of
>the format. Here is a example output:
>
> >>>
><xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
>targetNamespace="http://apache.org/cocoon/sitemap/1.0"
>xmlns="http://apache.org/cocoon/sitemap/1.0">
> <xsd:element name="sitemap" type="sitemapType" />
>
> <xsd:complexType name="sitemapType">
> <xsd:sequence>
> <xsd:element name="components" type="componentsType" />
>
> <xsd:element name="views" type="viewsType" />
>
> <xsd:element name="resources" type="resourcesType" />
>
> <xsd:element name="pipelines" type="pipelinesType" />
> </xsd:sequence>
> </xsd:complexType>
><<<<
>
>- Why are some elements divided with blank lines? Other parts of the output
>have no blank lines.
>
>- When elements are wrapped, can the folowing lines (attributes in the
>first 3 lines) be indented? I know the option for a linebreak for each
>attribute. But I am searching for a possibility to have more than one
>attribute in one line.
>
>Thanks
>Martin
Attachments
- text/plain attachment: pprint.xml.diff.txt
Received on Friday, 19 July 2002 10:55:58 UTC