svn commit: r792258 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r792258 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java

adrianc
Author: adrianc
Date: Wed Jul  8 18:53:34 2009
New Revision: 792258

URL: http://svn.apache.org/viewvc?rev=792258&view=rev
Log:
Enabled HTML whitespace compression in MacroScreenViewHandler.java.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java?rev=792258&r1=792257&r2=792258&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/MacroScreenViewHandler.java Wed Jul  8 18:53:34 2009
@@ -84,6 +84,9 @@
                 encoding = UtilProperties.getPropertyValue("widget", getName() + ".default.encoding", "none");
             }
             boolean compressOutput = "compressed".equals(encoding);
+            if (!compressOutput) {
+                compressOutput = "true".equals(UtilProperties.getPropertyValue("widget", "compress.HTML"));
+            }
             if (!compressOutput && this.servletContext != null) {
                 compressOutput = "true".equals((String) this.servletContext.getAttribute("compressHTML"));
             }