mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '1.8' into 6026_xref_for_deflist
This commit is contained in:
commit
c67443f4a2
2
CHANGES
2
CHANGES
@ -18,6 +18,8 @@ Bugs fixed
|
||||
|
||||
* LaTeX: Remove extraneous space after author names on PDF title page (refs: #6004)
|
||||
* #6026: LaTeX: A cross reference to definition list does not work
|
||||
* #6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given
|
||||
* #6019: imgconverter: Including multipage PDF fails
|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
@ -66,9 +66,9 @@ class ImagemagickConverter(ImageConverter):
|
||||
# type: (unicode, unicode) -> bool
|
||||
"""Converts the image to expected one."""
|
||||
try:
|
||||
if _from.lower().endswith('.gif'):
|
||||
# when target is GIF format, pick the first frame
|
||||
_from += '[0]'
|
||||
# append an index 0 to source filename to pick up the first frame
|
||||
# (or first page) of image (ex. Animation GIF, PDF)
|
||||
_from += '[0]'
|
||||
|
||||
args = ([self.config.image_converter] +
|
||||
self.config.image_converter_args +
|
||||
|
Loading…
Reference in New Issue
Block a user