From 15cf4064fe628e96a31731264345cc2d940d9b20 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Apr 2018 10:08:07 +0530 Subject: [PATCH] Fix things sphinx complains about --- manual/conversion.rst | 4 ++-- src/calibre/customize/__init__.py | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/manual/conversion.rst b/manual/conversion.rst index 2ee0fa5e71..13e1f164fc 100644 --- a/manual/conversion.rst +++ b/manual/conversion.rst @@ -155,7 +155,7 @@ lines. By default, (a line height of 0), no manipulation of line heights is perf you specify a non-default value, line heights will be set in all locations that don't specify their own line heights. However, this is something of a blunt weapon and should be used sparingly. If you want to adjust the line heights for some section of the input, it's better to use -the :ref:`extra-css`. +the :ref:`Extra CSS `. In this section you can also tell calibre to embed any referenced fonts into the book. This will allow the fonts to work on reader devices even if they are @@ -199,7 +199,7 @@ it performs as advertised, irrespective of how messy the input file is. The one when the input file uses hard line breaks to implement inter-paragraph spacing. If you want to remove the spacing between all paragraphs, except a select few, don't use these -options. Instead add the following CSS code to :ref:`extra-css`:: +options. Instead add the following CSS code to :ref:`Extra CSS `:: p, div { margin: 0pt; border: 0pt; text-indent: 1.5em } .spacious { margin-bottom: 1em; text-indent: 0pt; } diff --git a/src/calibre/customize/__init__.py b/src/calibre/customize/__init__.py index 709d37feb1..046ae26ec3 100644 --- a/src/calibre/customize/__init__.py +++ b/src/calibre/customize/__init__.py @@ -478,14 +478,15 @@ class CatalogPlugin(Plugin): # {{{ #: CLI parser options specific to this plugin, declared as namedtuple Option:: #: - #: from collections import namedtuple - #: Option = namedtuple('Option', 'option, default, dest, help') - #: cli_options = [Option('--catalog-title', + #: from collections import namedtuple + #: Option = namedtuple('Option', 'option, default, dest, help') + #: cli_options = [Option('--catalog-title', #: default = 'My Catalog', #: 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 = [] def _field_sorter(self, key):