Skip to content

Commit 2332869

Browse files
committed
Fix encoding issues
- e.g. isn’t -> isn’t
1 parent f6ad4bb commit 2332869

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generator.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
html_tmpl = """<html><!-- Online page at {url} -->
66
<head>
7+
<meta charset="UTF-8">
78
<link rel="stylesheet" type="text/css" href="../style.css"/>
89
</head>
910
<body>
@@ -72,7 +73,7 @@
7273

7374
# Generate tldr pages index.html
7475
with open(os.path.join(doc_path, "index.html"), "w+") as html:
75-
html.write('<html><!-- Online page at '+online_url+' --><head></head><body><h1>TLDR pages Docset</h1><br/>powered by <a href="http://tldr-pages.github.io">tldr-pages.github.io/</a>')
76+
html.write('<html><!-- Online page at '+online_url+' --><head><meta charset="UTF-8"></head><body><h1>TLDR pages Docset</h1><br/>powered by <a href="http://tldr-pages.github.io">tldr-pages.github.io/</a>')
7677
for dir in sorted(os.listdir(doc_path)):
7778
if os.path.isdir(os.path.join(doc_path, dir)):
7879
html.write("<h2>%s</h2><ul>" % dir)

0 commit comments

Comments
 (0)