hgbook
diff it/web/genindex.py @ 871:9ba99e6dc255
Stop people from spamming me by accident.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun Oct 18 22:55:10 2009 -0700 (2009-10-18) |
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 Sun Oct 18 22:55:10 2009 -0700 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,