We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87cd421 commit bd8ced2Copy full SHA for bd8ced2
sphinx_autofixture/__init__.py
@@ -183,10 +183,11 @@ def validate_config(app: Sphinx, config: Config):
183
:param config:
184
"""
185
186
- rst_prolog = StringList(config.rst_prolog or '')
+ rst_prolog: Union[str, StringList] = config.rst_prolog or ''
187
188
nbsp_sub = ".. |nbsp| unicode:: 0xA0\n :trim:"
189
if nbsp_sub not in rst_prolog:
190
+ rst_prolog = StringList(rst_prolog)
191
rst_prolog.append(nbsp_sub)
192
193
config.rst_prolog = str(rst_prolog) # type: ignore
0 commit comments