Fix docstring formatting

This commit is contained in:
Ben Darnell 2012-05-20 16:57:36 -07:00
parent e4ee4709db
commit 4c6f1137f1
1 changed files with 9 additions and 7 deletions

View File

@ -248,8 +248,10 @@ def linkify(text, shorten=False, extra_params="",
extra_params: Extra text to include in the link tag, or a callable
taking the link as an argument and returning the extra text
e.g. linkify(text, extra_params='rel="nofollow" class="external"')
or def extra_params_cb(url):
e.g. ``linkify(text, extra_params='rel="nofollow" class="external"')``,
or::
def extra_params_cb(url):
if url.startswith("http://example.com"):
return 'class="internal"'
else: