mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#581: Fix traceback in Python domain for empty cross-reference targets.
This commit is contained in:
parent
3f44fc7332
commit
7e3151dd73
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
|||||||
Release 1.0.6 (in development)
|
Release 1.0.6 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
* #581: Fix traceback in Python domain for empty cross-reference
|
||||||
|
targets.
|
||||||
|
|
||||||
* #283: Fix literal block display issues on Chrome browsers.
|
* #283: Fix literal block display issues on Chrome browsers.
|
||||||
|
|
||||||
* #383, #148: Support sorting a limited range of accented characters
|
* #383, #148: Support sorting a limited range of accented characters
|
||||||
|
@ -585,7 +585,7 @@ class PythonDomain(Domain):
|
|||||||
name = name[:-2]
|
name = name[:-2]
|
||||||
|
|
||||||
if not name:
|
if not name:
|
||||||
return None, None
|
return []
|
||||||
|
|
||||||
objects = self.data['objects']
|
objects = self.data['objects']
|
||||||
matches = []
|
matches = []
|
||||||
|
@ -13,6 +13,9 @@ Testing object descriptions
|
|||||||
.. function:: func_with_module
|
.. function:: func_with_module
|
||||||
:module: foolib
|
:module: foolib
|
||||||
|
|
||||||
|
Referring to :func:`func with no index <func_noindex>`.
|
||||||
|
Referring to :func:`nothing <>`.
|
||||||
|
|
||||||
.. module:: mod
|
.. module:: mod
|
||||||
:synopsis: Module synopsis.
|
:synopsis: Module synopsis.
|
||||||
:platform: UNIX
|
:platform: UNIX
|
||||||
|
Loading…
Reference in New Issue
Block a user