mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
c271126633
@ -2664,12 +2664,13 @@ class BuiltinSwapAroundArticles(BuiltinFormatterFunction):
|
||||
arg_count = 2
|
||||
category = STRING_MANIPULATION
|
||||
__doc__ = doc = _(
|
||||
r'''
|
||||
``swap_around_articles(value, separator)`` -- returns the ``value`` with articles moved to
|
||||
the end.[/] The ``value`` can be a list, in which case each item in the list is
|
||||
processed. If the ``value`` is a list then you must provide the ``separator``. If no
|
||||
``separator`` is provided then the ``value`` is treated as being a single value, not
|
||||
a list. The `articles` are those used by calibre to generate the ``title_sort``.
|
||||
r''' ``swap_around_articles(value, separator)`` -- returns the ``value`` with
|
||||
articles moved to the end, separated by a semicolon.[/] The ``value`` can be a
|
||||
list, in which case each item in the list is processed. If the ``value`` is a
|
||||
list then you must provide the ``separator``. If no ``separator`` is provided
|
||||
or the separator is the empty string then the ``value`` is treated as being a
|
||||
single value, not a list. The `articles` are those used by calibre to generate
|
||||
the ``title_sort``.
|
||||
''')
|
||||
|
||||
def evaluate(self, formatter, kwargs, mi, locals, val, separator):
|
||||
|
Loading…
x
Reference in New Issue
Block a user