mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Change [/]. to .[/]
This commit is contained in:
parent
2f59fa2a8b
commit
a8103c650e
@ -754,7 +754,7 @@ class BuiltinSubstr(BuiltinFormatterFunction):
|
|||||||
def __doc__getter__(self): return translate_ffml(
|
def __doc__getter__(self): return translate_ffml(
|
||||||
r'''
|
r'''
|
||||||
``substr(value, start, end)`` -- returns the ``start``'th through the ``end``'th
|
``substr(value, start, end)`` -- returns the ``start``'th through the ``end``'th
|
||||||
characters of ``value``[/]. The first character in ``value`` is the zero'th character.
|
characters of ``value``.[/] The first character in ``value`` is the zero'th character.
|
||||||
If ``end`` is negative then it indicates that many characters counting from the
|
If ``end`` is negative then it indicates that many characters counting from the
|
||||||
right. If ``end`` is zero, then it indicates the last character. For example,
|
right. If ``end`` is zero, then it indicates the last character. For example,
|
||||||
``substr('12345', 1, 0)`` returns ``'2345'``, and ``substr('12345', 1, -1)``
|
``substr('12345', 1, 0)`` returns ``'2345'``, and ``substr('12345', 1, -1)``
|
||||||
@ -772,7 +772,7 @@ class BuiltinLookup(BuiltinFormatterFunction):
|
|||||||
def __doc__getter__(self): return translate_ffml(
|
def __doc__getter__(self): return translate_ffml(
|
||||||
r'''
|
r'''
|
||||||
``lookup(value, [ pattern, key, ]* else_key)`` -- The patterns will be checked against
|
``lookup(value, [ pattern, key, ]* else_key)`` -- The patterns will be checked against
|
||||||
the ``value`` in order[/]. If a ``pattern`` matches then the value of the field named by
|
the ``value`` in order.[/] If a ``pattern`` matches then the value of the field named by
|
||||||
``key`` is returned. If no pattern matches then the value of the field named by
|
``key`` is returned. If no pattern matches then the value of the field named by
|
||||||
``else_key`` is returned. See also the :ref:`switch` function.
|
``else_key`` is returned. See also the :ref:`switch` function.
|
||||||
''')
|
''')
|
||||||
@ -818,7 +818,7 @@ class BuiltinContains(BuiltinFormatterFunction):
|
|||||||
def __doc__getter__(self): return translate_ffml(
|
def __doc__getter__(self): return translate_ffml(
|
||||||
r'''
|
r'''
|
||||||
``contains(value, pattern, text_if_match, text_if_not_match)`` -- checks if the value
|
``contains(value, pattern, text_if_match, text_if_not_match)`` -- checks if the value
|
||||||
is matched by the regular expression ``pattern``[/]. Returns ``text_if_match`` if
|
is matched by the regular expression ``pattern``.[/] Returns ``text_if_match`` if
|
||||||
the pattern matches the value, otherwise returns ``text_if_not_match``.
|
the pattern matches the value, otherwise returns ``text_if_not_match``.
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user