Mercurial > hg > MakeItSo
comparison makeitso/makeitso.py @ 56:728cae02a6ed
* fix another variable-related bug
* API templates may have descriptions (and *should*!)
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 06 Jan 2011 14:25:51 -0800 |
| parents | b087a14a664b |
| children | b91133e3b02d |
comparison
equal
deleted
inserted
replaced
| 55:b087a14a664b | 56:728cae02a6ed |
|---|---|
| 198 | 198 |
| 199 # remove makeitso shebang if it has one | 199 # remove makeitso shebang if it has one |
| 200 if shebang_re.match(content): | 200 if shebang_re.match(content): |
| 201 content = os.linesep.join(content.splitlines()[1:]) | 201 content = os.linesep.join(content.splitlines()[1:]) |
| 202 | 202 |
| 203 variables = variables or {} | |
| 203 variables['here'] = parent_uri(uri) | 204 variables['here'] = parent_uri(uri) |
| 204 ContentTemplate.__init__(self, content, name=uri, | 205 ContentTemplate.__init__(self, content, name=uri, |
| 205 interactive=interactive, | 206 interactive=interactive, |
| 206 variables=variables) | 207 variables=variables) |
| 207 | 208 |
