Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WCAG AA
  • Loading branch information
Wulian233 committed Feb 10, 2025
commit 3cfd78df9a658ead79f8a10cea78f89fb485a6a9
16 changes: 7 additions & 9 deletions Lib/difflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,15 +1612,13 @@ def _line_pair_iterator():


_file_template = """
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=%(charset)s" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="%(charset)s">
<title>Comparison page</title>
Comment thread
Wulian233 marked this conversation as resolved.
Outdated
<style type="text/css">%(styles)s
</style>
</head>
Expand All @@ -1643,9 +1641,9 @@ def _line_pair_iterator():

@media (prefers-color-scheme: dark) {
.diff_header {background-color:#666}
.diff_next {background-color:#444}
.diff_next {background-color:#393939}
.diff_add {background-color:darkgreen}
.diff_chg {background-color:goldenrod}
.diff_chg {background-color:#847415}
.diff_sub {background-color:darkred}
}"""

Expand Down
16 changes: 7 additions & 9 deletions Lib/test/test_difflib_expect.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Comparison page</title>
<style type="text/css">
:root {color-scheme: light dark}
table.diff {font-family:Courier; border:medium;}
Expand All @@ -20,9 +18,9 @@

@media (prefers-color-scheme: dark) {
.diff_header {background-color:#666}
.diff_next {background-color:#444}
.diff_next {background-color:#393939}
.diff_add {background-color:darkgreen}
.diff_chg {background-color:goldenrod}
.diff_chg {background-color:#847415}
.diff_sub {background-color:darkred}
}
</style>
Expand Down