hgbook

diff it/web/genindex.py @ 801:fcddc33b6e4d

Wording.
author Giulio@puck
date Fri Aug 14 16:10:54 2009 +0200 (2009-08-14)
parents 23ebfe2bd091
children 52ed51334e01
line diff
     1.1 --- a/it/web/genindex.py	Fri Jul 10 18:38:26 2009 +0200
     1.2 +++ b/it/web/genindex.py	Fri Aug 14 16:10:54 2009 +0200
     1.3 @@ -9,7 +9,7 @@
     1.4  chapters = (sorted(glob.glob('../ch*.xml')) +
     1.5              sorted(glob.glob('../app*.xml')))
     1.6  
     1.7 -fp = open('index-read.html.in', 'w')
     1.8 +fp = open('index-read.html.in', 'w', encoding='utf-8')
     1.9  
    1.10  print('''
    1.11  <div class="navheader"><h1 class="booktitle">Mercurial: la guida definitiva<div class="authors">di Bryan O'Sullivan</div></h1></div>
    1.12 @@ -23,7 +23,7 @@
    1.13      title = None
    1.14      chapid = None
    1.15      chaptype = None
    1.16 -    for line in open(c):
    1.17 +    for line in open(c, encoding='utf-8'):
    1.18          m = chapter_re.search(line)
    1.19          if m:
    1.20              chaptype, chapid = m.groups()