https://issues.apache.org/bugzilla/show_bug.cgi?id=47025

           Summary: Source editor indents document
           Product: Lenya
           Version: 2.0.3
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Form Editor
        AssignedTo: [email protected]
        ReportedBy: [email protected]


The document content is indented when saving with the source editor. This
causes whitespace issues e.g. in XSP documents.

The problem is caused by the DocumentHelper. Here's a patch:


Index: src/java/org/apache/lenya/xml/DocumentHelper.java
===================================================================
--- src/java/org/apache/lenya/xml/DocumentHelper.java    (revision 755992 ( 
https://svn.apache.org/viewcvs.cgi?view=rev&rev=755992 ))
+++ src/java/org/apache/lenya/xml/DocumentHelper.java    (working copy)
@@ -274,7 +274,7 @@
             throws TransformerConfigurationException {
         TransformerFactory factory = TransformerFactory.newInstance();
         Transformer transformer = factory.newTransformer();
-        transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+        transformer.setOutputProperty(OutputKeys.INDENT, "no");
         transformer.setOutputProperty(OutputKeys.METHOD, "xml");

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to