[game-data-packager] 01/01: babel.py: don't make validator cry

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Jun 18 20:20:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit e3f913335bb6d5ed2231c325fb98f09491144c18
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Jun 18 22:20:08 2015 +0200

    babel.py: don't make validator cry
---
 tools/babel.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/babel.py b/tools/babel.py
index cfac7c9..a2542f0 100755
--- a/tools/babel.py
+++ b/tools/babel.py
@@ -44,10 +44,11 @@ games = sorted(games, key=lambda k: (k['genre'], k['shortname'], k['longname']))
 langs_order = sorted(langs, key=langs.get, reverse=True)
 
 html = open('/home/tchet/Utilitaires/Homepage/babel.html', 'w', encoding='latin1')
-html.write('''
+html.write('''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
 <title>Game-Data-Packager</title>
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 </head>
 <table border=1 cellspacing=0>
 <tr>
@@ -61,9 +62,10 @@ html.write('</tr>\n')
 # BODY
 last_genre = None
 for game in games:
+    html.write('<tr>\n')
     genre = game['genre']
     if genre != last_genre:
-        html.write('<tr><td rowspan=%i>%s</td>\n' % (genres[genre], genre))
+        html.write('<td rowspan=%i>%s</td>\n' % (genres[genre], genre))
         last_genre = genre
     html.write('  <td>%s</td>\n' % game['longname'])
     for lang in langs_order:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list