Mercurial > hg
comparison mercurial/minirst.py @ 17424:e7cfe3587ea4
fix trivial spelling errors
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 15 Aug 2012 22:38:42 +0200 |
parents | e740746ea557 |
children | 6e676fb6ea44 |
comparison
equal
deleted
inserted
replaced
17406:fc14953e8e34 | 17424:e7cfe3587ea4 |
---|---|
131 ('definition', _definitionre, False)] | 131 ('definition', _definitionre, False)] |
132 | 132 |
133 def match(lines, i, itemre, singleline): | 133 def match(lines, i, itemre, singleline): |
134 """Does itemre match an item at line i? | 134 """Does itemre match an item at line i? |
135 | 135 |
136 A list item can be followed by an idented line or another list | 136 A list item can be followed by an indented line or another list |
137 item (but only if singleline is True). | 137 item (but only if singleline is True). |
138 """ | 138 """ |
139 line1 = lines[i] | 139 line1 = lines[i] |
140 line2 = i + 1 < len(lines) and lines[i + 1] or '' | 140 line2 = i + 1 < len(lines) and lines[i + 1] or '' |
141 if not itemre.match(line1): | 141 if not itemre.match(line1): |