Changeset 2
- Timestamp:
- 11/29/04 04:44:20 (4 years ago)
- Files:
-
- trunk/macros/AddComment.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/macros/AddComment.py
r1 r2 40 40 newtext = StringIO() 41 41 for line in page.text.splitlines(): 42 if line.find('[[AddComment') != -1:42 if line.find('[[AddComment') == 0: 43 43 newtext.write("==== Comment by %s on %s ====\n%s\n\n" % (authname, time.strftime('%c', time.localtime()), comment)) 44 44 newtext.write(line + "\n")
