hgbook

diff it/web/genindex.py @ 1064:3a2260cf556f

1.8 6,7 para zh translated
author Zhaoping Sun <zhaopingsun@gmail.com>
date Wed Nov 11 16:50:06 2009 -0500 (2009-11-11)
parents 600e7ab15c67
children 719b03ea27c8
line diff
     1.1 --- a/it/web/genindex.py	Sun Aug 23 01:14:14 2009 +0200
     1.2 +++ b/it/web/genindex.py	Wed Nov 11 16:50:06 2009 -0500
     1.3 @@ -43,14 +43,14 @@
     1.4              else:
     1.5                  num = str(ch) + '. '
     1.6                  ch += 1
     1.7 -            if title.find('&') >= 0:
     1.8 +            if '&' in title:
     1.9                  title = title.replace('&', '\&')
    1.10              ab += 1
    1.11              date = os.popen('hg log -l1 --template "{date|isodate}" ' + c).read().split(None, 1)[0]
    1.12              args = {
    1.13                  'ab': "ab"[ab % 2],
    1.14                  'date': date,
    1.15 -                'chapid': chapid,
    1.16 +                # 'chapid': chapid,
    1.17                  'num': num,
    1.18                  'filename': filename,
    1.19                  'title': title,