1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sun, 10 Dec 2023 10:00:51 +0100
Subject: d/conf.py: Add a trailing whitespace to copyright fields
This is a work around as Sphinx 7.2.6 wont work and produces an exception.
---%<---
Running Sphinx v7.2.6
making output directory... done
Extension error (sphinx.config):
Handler <function correct_copyright_year at 0x7f0302db8ae0> for event 'config-inited' threw an exception (exception: string index out of range)
--->%---
It seems that sphinx.config isn't working correctly if the string hasn't
a trailing whitespace in case a time span is given.
https://www.sphinx-doc.org/en/master/_modules/sphinx/config.html
See doc string in _substitute_copyright_year()
def _substitute_copyright_year(copyright_line: str, replace_year: str) -> str:
"""Replace the year in a single copyright line.
Legal formats are:
* ``YYYY``
* ``YYYY,``
* ``YYYY ``
* ``YYYY-YYYY,``
* ``YYYY-YYYY `` <---------
The final year in the string is replaced with ``replace_year``.
"""
---
docs/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 39c1a94..436aeb6 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -51,7 +51,7 @@ master_doc = "index"
# General information about the project.
project = "Flask-Security"
-copyright = "2012-2025"
+copyright = "2012-2025 "
author = "Matt Wright & Chris Wagner"
# The version info for the project you're documenting, acts as replacement for
|