From 957ca644b2ea0059a79d60e1c35a2e4be866e641 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 Nov 2014 15:21:06 +0530 Subject: [PATCH] ... --- manual/function_mode.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manual/function_mode.rst b/manual/function_mode.rst index 34031626e9..8c01809995 100644 --- a/manual/function_mode.rst +++ b/manual/function_mode.rst @@ -326,7 +326,9 @@ Having your function called an extra time after the last match is found Sometimes, as in the auto generate table of contents example above, it is useful to have your function called an extra time after the last match is found. You can do this by setting the call_after_last_match attribute on your -function, like this:: +function, like this: + +.. code-block:: python def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs): ...