Skip to content

HTMLCalendar.formatyearpage not behaving as documented #45387

Closed

Description

@inefab
mannequin
BPO 1046
Nosy @doerwalter
Files
  • cal.py
  • 2008cal.html
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2007-08-28.16:38:50.993>
    created_at = <Date 2007-08-28.16:07:04.827>
    labels = ['extension-modules', 'type-bug']
    title = 'HTMLCalendar.formatyearpage not behaving as documented'
    updated_at = <Date 2007-08-28.16:38:50.969>
    user = 'https://bugs.python.org/inefab'

    bugs.python.org fields:

    activity = <Date 2007-08-28.16:38:50.969>
    actor = 'doerwalter'
    assignee = 'none'
    closed = True
    closed_date = <Date 2007-08-28.16:38:50.993>
    closer = 'doerwalter'
    components = ['Extension Modules']
    creation = <Date 2007-08-28.16:07:04.827>
    creator = 'inefab'
    dependencies = []
    files = ['8343', '8344']
    hgrepos = []
    issue_num = 1046
    keywords = []
    message_count = 3.0
    messages = ['55376', '55377', '55378']
    nosy_count = 2.0
    nosy_names = ['doerwalter', 'inefab']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1046'
    versions = ['Python 2.5']

    Activity

    1. inefab commented on Aug 28, 2007

      inefabmannequin
      MannequinAuthor

      The function HTMLCalendar.formatyearpage in module calendar takes at
      most 5 arguments (year, month, css, encoding) whereas documentation
      (http://docs.python.org/lib/module-calendar.html) says it takes at most
      6 (theyear, themonth[, width[, css[, encoding]]]).

      Also, the title tag in the head of the produced document with (year,
      month, css) as arguments isn't properly closed ; the line is
      <title>Calendar for 2008</title
      when it should be
      <title>Calendar for 2008</title>

      This happend with linux (debian sid), with Python 2.5.1

      Note: I haven't tested if the encoding did what it should

      Joined files :

      • HTMLyearbug.py: reproduces the bug
      • 2008cal.html: the output produced by this file
    2. inefab commented on Aug 28, 2007

      inefabmannequin
      MannequinAuthor

      uploaded 2008cal.html

    3. doerwalter commented on Aug 28, 2007

      @doerwalter
      Contributor

      Fixed in r57620

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions