cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hepab...@apache.org
Subject svn commit: r312656 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
Date Mon, 10 Oct 2005 13:58:39 GMT
Author: hepabolu
Date: Mon Oct 10 06:58:31 2005
New Revision: 312656

URL: http://svn.apache.org/viewcvs?rev=312656&view=rev
Log:
Bug 35413, patch applied, thanks to Patrick Ahles

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java?rev=312656&r1=312655&r2=312656&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/CalendarGenerator.java
Mon Oct 10 06:58:31 2005
@@ -309,8 +309,10 @@
                         PREFIX + ':' + DAY_NODE_NAME);
                 end.add(Calendar.DAY_OF_MONTH, 1); 		
             }
-            this.contentHandler.endElement(URI, WEEK_NODE_NAME,
-                    PREFIX + ':' + WEEK_NODE_NAME);
+			if (firstDay == end.get(Calendar.DAY_OF_WEEK)) { 
+				this.contentHandler.endElement(URI, WEEK_NODE_NAME,
+                        PREFIX + ':' + WEEK_NODE_NAME);
+			}
         }
         this.contentHandler.endElement(URI, CALENDAR_NODE_NAME,
                 PREFIX + ':' + CALENDAR_NODE_NAME);



Mime
View raw message