Code formatting issue in comment

Original rendering here: https://manual.calibre-ebook.com/plugins.html#catalog-plugins
This commit is contained in:
Joseph Fox-Rabinovitz 2021-01-05 16:24:40 -06:00 committed by GitHub
parent b62dee010a
commit 61b88e5288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,13 +479,13 @@ class CatalogPlugin(Plugin): # {{{
type = _('Catalog generator') type = _('Catalog generator')
#: CLI parser options specific to this plugin, declared as namedtuple Option: #: CLI parser options specific to this plugin, declared as `namedtuple` `Option`::
#: #:
#: from collections import namedtuple #: from collections import namedtuple
#: Option = namedtuple('Option', 'option, default, dest, help') #: Option = namedtuple('Option', 'option, default, dest, help')
#: cli_options = [Option('--catalog-title', default = 'My Catalog', #: cli_options = [Option('--catalog-title', default = 'My Catalog',
#: dest = 'catalog_title', help = (_('Title of generated catalog. \nDefault:') + " '" + '%default' + "'"))] #: dest = 'catalog_title', help = (_('Title of generated catalog. \nDefault:') + " '" + '%default' + "'"))]
#: cli_options parsed in calibre.db.cli.cmd_catalog:option_parser() #: cli_options parsed in calibre.db.cli.cmd_catalog:option_parser()
#: #:
cli_options = [] cli_options = []