felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r570466 - /felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
Date Tue, 28 Aug 2007 16:03:35 GMT
Author: cziegeler
Date: Tue Aug 28 09:03:34 2007
New Revision: 570466

URL: http://svn.apache.org/viewvc?rev=570466&view=rev
Log:
Create a new line before printing out multi value properties.

Modified:
    felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java

Modified: felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java?rev=570466&r1=570465&r2=570466&view=diff
==============================================================================
--- felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
(original)
+++ felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
Tue Aug 28 09:03:34 2007
@@ -234,6 +234,8 @@
         IOUtils.addAttribute(ai, "value", property.getValue());
         contentHandler.startElement(NAMESPACE_URI, ComponentDescriptorIO.PROPERTY, ComponentDescriptorIO.PROPERTY_QNAME,
ai);
         if ( property.getMultiValue() != null && property.getMultiValue().length
> 0 ) {
+            // generate a new line first
+            IOUtils.text(contentHandler, "\n");
             for(int i=0; i<property.getMultiValue().length; i++) {
                 IOUtils.text(contentHandler, "    ");
                 IOUtils.text(contentHandler, property.getMultiValue()[i]);



Mime
View raw message