mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use the new indent parameter instead of indenting manually
This commit is contained in:
parent
77d4d2a370
commit
7a3571cf56
@ -33,11 +33,10 @@ def formatter_funcs():
|
||||
ffml = FFMLProcessor()
|
||||
all_funcs = formatter_functions().get_builtins()
|
||||
for func_name, func in all_funcs.items():
|
||||
text = ffml.document_to_rst(func.doc, func_name)
|
||||
# indent the text since :ffdoc: is used inside lists
|
||||
# if we need no indent we can create a new role like
|
||||
# :ffdoc-no-indent:
|
||||
text = '\n '.join(text.splitlines())
|
||||
text = ffml.document_to_rst(func.doc, func_name, indent=1)
|
||||
ans[func_name] = text.strip()
|
||||
db.close()
|
||||
del db
|
||||
|
@ -34,7 +34,8 @@ from calibre.utils.config import tweaks
|
||||
from calibre.utils.date import UNDEFINED_DATE, format_date, now, parse_date
|
||||
from calibre.utils.icu import capitalize, sort_key, strcmp
|
||||
from calibre.utils.icu import lower as icu_lower
|
||||
from calibre.utils.localization import _ as xlated, calibre_langcode_to_name, canonicalize_lang
|
||||
from calibre.utils.localization import _ as xlated
|
||||
from calibre.utils.localization import calibre_langcode_to_name, canonicalize_lang
|
||||
from calibre.utils.titlecase import titlecase
|
||||
from polyglot.builtins import iteritems, itervalues
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user