File: this-month.patch

package info (click to toggle)
libical-parser-html-perl 1.07-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 848 kB
  • ctags: 20
  • sloc: perl: 141; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix rendering of previous and following month in sidebar
 Otherwise, only the first week of the month would be rendered as $month
 is the current month (11 for the complex.ics tests)
Author: Florian Schlichting <fsfs@debian.org>
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=94968

--- a/lib/iCal/Parser/HTML/stylesheet/month-util.xsl
+++ b/lib/iCal/Parser/HTML/stylesheet/month-util.xsl
@@ -86,7 +86,7 @@
 	 </xsl:call-template>
       </tr>
       <xsl:variable name="next-week" select="date:add($start-date,'P7D')"/>
-      <xsl:if test="date:month-in-year($next-week) = $month">
+      <xsl:if test="date:month-in-year($next-week) = $this-month">
 	 <xsl:call-template name="week">
 	    <xsl:with-param name="start-date"  select="$next-week"/>
 	    <xsl:with-param name="month" select="$month"/>