1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

named conversions.

This commit is contained in:
Shlomi Fish 2018-07-22 16:58:50 +03:00
parent 98327f641e
commit 3b6e8b5e87

View file

@ -89,7 +89,7 @@ main_footer = '''
rules_header = '''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> rules_header = '''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html> <html>
<head> <head>
<title>%s</title> <title>%(title)s</title>
<meta name="license" content="GNU General Public License"> <meta name="license" content="GNU General Public License">
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
</head> </head>
@ -238,7 +238,7 @@ def gen_rules_html():
outfile = open( outfile = open(
os.path.join('html', 'rules', filename), 'w', encoding='utf-8') os.path.join('html', 'rules', filename), 'w', encoding='utf-8')
if dir == 'rules': if dir == 'rules':
print(rules_header % title, file=outfile) print(rules_header % {'title': title}, file=outfile)
else: # d == 'wikipedia' else: # d == 'wikipedia'
print(wikipedia_header % title, file=outfile) print(wikipedia_header % title, file=outfile)
with open(os.path.join(dir, filename), 'r', encoding='utf-8') as file: with open(os.path.join(dir, filename), 'r', encoding='utf-8') as file: