mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3038: `sphinx.ext.math*
` raises TypeError if labels are duplicated
This commit is contained in:
parent
d87ba0d1da
commit
cdafec02ad
1
CHANGES
1
CHANGES
@ -37,6 +37,7 @@ Bugs fixed
|
|||||||
* #147: Problem with latex chapter style
|
* #147: Problem with latex chapter style
|
||||||
* #3018: LaTeX problem with page layout dimensions and chapter titles
|
* #3018: LaTeX problem with page layout dimensions and chapter titles
|
||||||
* Fix an issue with ``\pysigline`` in LaTeX style file (ref #3023)
|
* Fix an issue with ``\pysigline`` in LaTeX style file (ref #3023)
|
||||||
|
* #3038: ``sphinx.ext.math*`` raises TypeError if labels are duplicated
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
@ -209,7 +209,7 @@ class MathDirective(Directive):
|
|||||||
self.state.document.note_explicit_target(target)
|
self.state.document.note_explicit_target(target)
|
||||||
ret.insert(0, target)
|
ret.insert(0, target)
|
||||||
except UserWarning as exc:
|
except UserWarning as exc:
|
||||||
self.state_machine.reporter.warning(exc[0], line=self.lineno)
|
self.state_machine.reporter.warning(exc.args[0], line=self.lineno)
|
||||||
|
|
||||||
|
|
||||||
def latex_visit_math(self, node):
|
def latex_visit_math(self, node):
|
||||||
|
Loading…
Reference in New Issue
Block a user