You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Modernize HTML output of difflib.HtmlDiff.make_file() #67852
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='https://github.com/berkerpeksag'closed_at=Nonecreated_at=<Date2015-03-14.23:22:54.908>labels= ['type-feature', 'library']
title='Modernize HTML output of difflib.HtmlDiff.make_file()'updated_at=<Date2016-01-03.09:54:58.444>user='https://github.com/berkerpeksag'
The generated documented uses XHTML 1.0 Transitional instead of HTML 5 and the template should therefore be updated (unless doing so break some tool that relies on it).
Does this cover the general outdated HTML syntax as well? At least in my case, PyCharm is complaining about the table output using the old cellspacing, cellpadding and rules attributes.
The generated documented uses XHTML 1.0 Transitional instead of HTML 5 and the template should therefore be updated (unless doing so break some tool that relies on it).
I saw this issue a bit late. I implemented the modernized difflib HTML output 2 months ago, migrating it to the HTML5 standard and optimizing the style. Can this issue be closed as completed?
Activity
berkerpeksag commentedon Mar 14, 2015
This is a split off from bpo-2052. issue2052_html5_v2.diff (from bpo-2052) needs to be updated.
iritkatriel commentedon Nov 8, 2022
@berkerpeksag Do you remember what this was about?
ezio-melotti commentedon Nov 21, 2022
IIRC it refers to this piece of code
cpython/Lib/difflib.py
Lines 1610 to 1619 in 2781ec9
The generated documented uses XHTML 1.0 Transitional instead of HTML 5 and the template should therefore be updated (unless doing so break some tool that relies on it).
stefan6419846 commentedon Sep 25, 2024
Does this cover the general outdated HTML syntax as well? At least in my case, PyCharm is complaining about the table output using the old
cellspacing,cellpaddingandrulesattributes.Wulian233 commentedon Jul 5, 2025
I saw this issue a bit late. I implemented the modernized difflib HTML output 2 months ago, migrating it to the HTML5 standard and optimizing the style. Can this issue be closed as completed?
See #67852
difflib.HtmlDifffor HTML Output #134580