jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dvit...@apache.org
Subject svn commit: r1694053 - /jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/forms/FormTextarea.java
Date Tue, 04 Aug 2015 13:08:40 GMT
Author: dvittor
Date: Tue Aug  4 13:08:39 2015
New Revision: 1694053

URL: http://svn.apache.org/r1694053
Log:
[JSPWIKI-900]: Fixed Problem with the WikiFormsPlugin Text Area

Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/forms/FormTextarea.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/forms/FormTextarea.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/forms/FormTextarea.java?rev=1694053&r1=1694052&r2=1694053&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/forms/FormTextarea.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/forms/FormTextarea.java Tue Aug
 4 13:08:39 2015
@@ -26,6 +26,7 @@ import org.apache.wiki.preferences.Prefe
 import org.apache.wiki.util.XHTML;
 import org.apache.wiki.util.XhtmlUtil;
 import org.jdom2.Element;
+import org.jdom2.output.Format;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -67,7 +68,7 @@ public class FormTextarea extends FormEl
         Element field = buildTextArea( params, previousValues, rb );
 
         // We should look for extra params, e.g. width, ..., here.
-        return XhtmlUtil.serialize(field); // ctx.getEngine().getContentEncoding()
+        return XhtmlUtil.serialize(field, XhtmlUtil.EXPAND_EMPTY_NODES ); // ctx.getEngine().getContentEncoding()
     }
 
     private Element buildTextArea(



Mime
View raw message