myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grantsm...@apache.org
Subject svn commit: r640875 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java
Date Tue, 25 Mar 2008 16:06:31 GMT
Author: grantsmith
Date: Tue Mar 25 09:06:28 2008
New Revision: 640875

URL: http://svn.apache.org/viewvc?rev=640875&view=rev
Log:
https://issues.apache.org/jira/browse/TOMAHAWK-1169 patch applied

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java?rev=640875&r1=640874&r2=640875&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlListRenderer.java
Tue Mar 25 09:06:28 2008
@@ -54,10 +54,12 @@
     {
         RendererUtils.checkParamValidity(facesContext, uiComponent, UIData.class);
         ResponseWriter writer = facesContext.getResponseWriter();
-        HtmlRendererUtils.writePrettyLineSeparator(facesContext);
         String layout = getLayout(uiComponent);
         if (layout != null)
         {
+            if (! layout.equals(LAYOUT_SIMPLE)) {
+                HtmlRendererUtils.writePrettyLineSeparator(facesContext);
+            }
             if (layout.equals(LAYOUT_UL))
             {
                 writer.startElement(HTML.UL_ELEM, uiComponent);
@@ -151,9 +153,11 @@
                 }
                 */
 
-                HtmlRendererUtils.writePrettyLineSeparator(facesContext);
                 if (layout != null)
                 {
+                    if (! layout.equals(LAYOUT_SIMPLE)) {
+                        HtmlRendererUtils.writePrettyLineSeparator(facesContext);
+                    }
                     if (layout.equals(LAYOUT_UL) || (layout.equals(LAYOUT_OL)))
                     {
                         writer.startElement(HTML.LI_ELEM, component);
@@ -205,10 +209,12 @@
     {
         RendererUtils.checkParamValidity(facesContext, uiComponent, UIData.class);
         ResponseWriter writer = facesContext.getResponseWriter();
-        HtmlRendererUtils.writePrettyLineSeparator(facesContext);
         String layout = getLayout(uiComponent);
         if (layout != null)
         {
+            if (! layout.equals(LAYOUT_SIMPLE)) {
+                HtmlRendererUtils.writePrettyLineSeparator(facesContext);
+            }
             if (layout.equals(LAYOUT_UL))
             {
                 writer.endElement(HTML.UL_ELEM);



Mime
View raw message