mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed two undefined errors.
This commit is contained in:
parent
89fdb83831
commit
e2063b0bae
@ -357,7 +357,7 @@ class MemberObjDefExpr(NamedDefExpr):
|
|||||||
buf = self.get_modifiers()
|
buf = self.get_modifiers()
|
||||||
buf.append(u'%s %s' % (self.typename, self.name))
|
buf.append(u'%s %s' % (self.typename, self.name))
|
||||||
if self.value is not None:
|
if self.value is not None:
|
||||||
buf.append(u'%s = %s' % (rv, self.value))
|
buf.append(u'= %s' % self.value)
|
||||||
return u' '.join(buf)
|
return u' '.join(buf)
|
||||||
|
|
||||||
|
|
||||||
@ -971,7 +971,7 @@ class CPPXRefRole(XRefRole):
|
|||||||
title = title[1:]
|
title = title[1:]
|
||||||
dcolon = title.rfind('::')
|
dcolon = title.rfind('::')
|
||||||
if dcolon != -1:
|
if dcolon != -1:
|
||||||
title = title[dot + 2:]
|
title = title[dcolon + 2:]
|
||||||
return title, target
|
return title, target
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user