Mercurial > public > mercurial-scm > hg
comparison mercurial/templatefilters.py @ 19467:1afe5d3939db stable
template: fix tabindent docstring (issue2880)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 19 Jul 2013 12:58:30 -0500 |
parents | 889807c79384 |
children | f08e542ce918 55c763926a28 |
comparison
equal
deleted
inserted
replaced
19466:3289080e57cd | 19467:1afe5d3939db |
---|---|
323 return os.path.basename(text) | 323 return os.path.basename(text) |
324 else: | 324 else: |
325 return dir | 325 return dir |
326 | 326 |
327 def tabindent(text): | 327 def tabindent(text): |
328 """:tabindent: Any text. Returns the text, with every line except the | 328 """:tabindent: Any text. Returns the text, with every non-empty line |
329 first starting with a tab character. | 329 except the first starting with a tab character. |
330 """ | 330 """ |
331 return indent(text, '\t') | 331 return indent(text, '\t') |
332 | 332 |
333 def urlescape(text): | 333 def urlescape(text): |
334 """:urlescape: Any text. Escapes all "special" characters. For example, | 334 """:urlescape: Any text. Escapes all "special" characters. For example, |