mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #6046: LaTeX: `TypeError
` is raised when invalid latex_elements given
This commit is contained in:
parent
b68d1d1066
commit
2f7e27810b
1
CHANGES
1
CHANGES
@ -17,6 +17,7 @@ Bugs fixed
|
||||
----------
|
||||
|
||||
* LaTeX: Remove extraneous space after author names on PDF title page (refs: #6004)
|
||||
* #6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -376,7 +376,7 @@ def validate_config_values(app, config):
|
||||
for key in list(config.latex_elements):
|
||||
if key not in DEFAULT_SETTINGS:
|
||||
msg = __("Unknown configure key: latex_elements[%r]. ignored.")
|
||||
logger.warning(msg % key)
|
||||
logger.warning(msg % (key,))
|
||||
config.latex_elements.pop(key)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user