hgbook
diff it/web/genindex.py @ 1052:c8b5a06543c0
cvs section translated
author | zhaopingsun |
---|---|
date | Tue Nov 10 16:25:43 2009 -0500 (2009-11-10) |
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 Tue Nov 10 16:25:43 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,