From 36ffc2b3cf2a842291fe3519d19dd936bc2d626b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Feb 2021 12:20:57 +0530 Subject: [PATCH] String changes --- manual/regexp.rst | 2 +- manual/template_lang.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/regexp.rst b/manual/regexp.rst index b499db799e..ed72c320de 100644 --- a/manual/regexp.rst +++ b/manual/regexp.rst @@ -149,4 +149,4 @@ Thanks for helping with tips, corrections and such: For more about regexps see `The Python User Manual `_. The actual regular expression library used by calibre is: `regex `_ which supports -several useful enhancements over the python standard library one. +several useful enhancements over the Python standard library one. diff --git a/manual/template_lang.rst b/manual/template_lang.rst index 6441a22f59..a75503bada 100644 --- a/manual/template_lang.rst +++ b/manual/template_lang.rst @@ -685,7 +685,7 @@ and use it during the evaluation. **Developer: how to pass additional information** -The additional information is a python dictionary containing pairs ``variable_name: variable_value`` where the values +The additional information is a Python dictionary containing pairs ``variable_name: variable_value`` where the values should be strings. The template can access the dict, creating template local variables named ``variable_name`` containing the value ``variable_value``. The user cannot change the name so it is best to use names that won't collide with other template local variables, for example by prefixing the name with an underscore.