diff --git a/docs/doc-src/conf.py b/docs/doc-src/conf.py index e961ab2..3f4bb6c 100644 --- a/docs/doc-src/conf.py +++ b/docs/doc-src/conf.py @@ -23,7 +23,8 @@ from offlineimap import __version__,__author__ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.viewcode'] autoclass_content = "both" # Add any paths that contain templates here, relative to this directory. diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index 7121231..55b2bfc 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -441,6 +441,11 @@ class BaseFolder(object): - headername: name of the header to add - headervalue: value of the header to add + .. note:: + + The following documentation will not get displayed correctly after being + processed by Sphinx. View the source of this method to read it. + This has to deal with strange corner cases where the header is missing or empty. Here are illustrations for all the cases, showing where the header gets inserted and what the end result