From d1b1b1679b0dbbb220133d4d314f5874a6499ec4 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Tue, 26 Aug 2014 03:31:34 +0200 Subject: [PATCH] Fixed method name in usage examples. The relevant method on the `Parser` instance is called `format`, not `render` (though the latter might have been more consistent). --- docs/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index f0b495e..e39a5e3 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -64,7 +64,7 @@ The linker is a function that gets called to replace URLs with markup. It takes return '%s' % (href, url) parser = bbcode.Parser(linker=my_linker) - parser.render('www.apple.com') # returns www.apple.com + parser.format('www.apple.com') # returns www.apple.com For an example of a linker that may want the render context, imagine a linker that routes all clicks through a local URL:: @@ -76,4 +76,4 @@ For an example of a linker that may want the render context, imagine a linker th return '%s' % (redir_url, url) parser = bbcode.Parser(linker=my_linker, linker_takes_context=True) - parser.render('www.apple.com', request=request) + parser.format('www.apple.com', request=request)