提交 119a29d2 编写于 作者: A Ansgar

Use correct lang="" attribute

上级 e2e8ff4b
...@@ -190,7 +190,7 @@ def sortfunc(a, b): ...@@ -190,7 +190,7 @@ def sortfunc(a, b):
def header(): def header():
print("""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" print("""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" /> <meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="style.css" /> <link type="text/css" rel="stylesheet" href="style.css" />
......
...@@ -49,7 +49,7 @@ def html_escape(s): ...@@ -49,7 +49,7 @@ def html_escape(s):
def header(): def header():
return """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> return """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Deferred uploads to Debian</title> <title>Deferred uploads to Debian</title>
<link type="text/css" rel="stylesheet" href="style.css"> <link type="text/css" rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="https://www.debian.org/favicon.ico"> <link rel="shortcut icon" href="https://www.debian.org/favicon.ico">
......
...@@ -59,7 +59,7 @@ def html_header(name, missing): ...@@ -59,7 +59,7 @@ def html_header(name, missing):
if name.endswith('.changes'): if name.endswith('.changes'):
name = ' '.join(name.split('_')[:2]) name = ' '.join(name.split('_')[:2])
result = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> result = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" <meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8"
/> />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册