Kaydet (Commit) f0d1c1f3 authored tarafından Walter Dörwald's avatar Walter Dörwald

Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for

HTMLCalender.formatyearpage() (there's no themonth parameter).

This fixes issue1046.
üst 3ccec68a
......@@ -162,7 +162,7 @@ it's the base calendar for all computations.
the number of months per row.
.. method:: HTMLCalendar.formatyearpage(theyear, themonth[, width[, css[, encoding]]])
.. method:: HTMLCalendar.formatyearpage(theyear[, width[, css[, encoding]]])
Return a year's calendar as a complete HTML page. *width* (defaulting to 3)
specifies the number of months per row. *css* is the name for the cascading
......
......@@ -471,7 +471,7 @@ class HTMLCalendar(Calendar):
a('<meta http-equiv="Content-Type" content="text/html; charset=%s" />\n' % encoding)
if css is not None:
a('<link rel="stylesheet" type="text/css" href="%s" />\n' % css)
a('<title>Calendar for %d</title\n' % theyear)
a('<title>Calendar for %d</title>\n' % theyear)
a('</head>\n')
a('<body>\n')
a(self.formatyear(theyear, width))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment