Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLCalendar.formatyearpage not behaving as documented #45387

Closed
inefab mannequin opened this issue Aug 28, 2007 · 3 comments
Closed

HTMLCalendar.formatyearpage not behaving as documented #45387

inefab mannequin opened this issue Aug 28, 2007 · 3 comments
Labels
extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@inefab
Copy link
Mannequin

inefab mannequin commented Aug 28, 2007

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']

    @inefab
    Copy link
    Mannequin Author

    inefab mannequin commented Aug 28, 2007

    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

    @inefab inefab mannequin added extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error labels Aug 28, 2007
    @inefab
    Copy link
    Mannequin Author

    inefab mannequin commented Aug 28, 2007

    uploaded 2008cal.html

    @doerwalter
    Copy link
    Contributor

    Fixed in r57620

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant