diff --git a/CHANGES b/CHANGES index 086b6f131..2a0743959 100644 --- a/CHANGES +++ b/CHANGES @@ -44,6 +44,8 @@ Bugs fixed * #185: References to section title including raw node has broken * #3255: In Py3.4 environment, autodoc doesn't support documentation for attributes of Enum class correctly. +* #3261: ``latex_use_parts`` makes sphinx crash +* The warning type ``misc.highlighting_failure`` does not work Release 1.5.1 (released Dec 13, 2016) ===================================== diff --git a/sphinx/builders/latex.py b/sphinx/builders/latex.py index c8e1449f9..96c520555 100644 --- a/sphinx/builders/latex.py +++ b/sphinx/builders/latex.py @@ -247,7 +247,7 @@ def validate_config_values(app): app.warn('latex_use_parts conflicts with latex_toplevel_sectioning, ignored.') else: app.warn('latex_use_parts is deprecated. Use latex_toplevel_sectioning instead.') - app.config.latex_toplevel_sectioning = 'parts' # type: ignore + app.config.latex_toplevel_sectioning = 'part' # type: ignore if app.config.latex_use_modindex is not True: # changed by user app.warn('latex_use_modindex is deprecated. Use latex_domain_indices instead.') diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index a3e36486f..94f562159 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -145,7 +145,7 @@ class PygmentsBridge(object): elif warn: warn('Could not lex literal_block as "%s". ' 'Highlighting skipped.' % lang, - type='misc', subtype='higlighting_failure') + type='misc', subtype='highlighting_failure') else: raise exc hlsource = highlight(source, lexers['none'], formatter)