mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1755ed2c7a
commit
957ca644b2
@ -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):
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user