diff options
Diffstat (limited to 'sphinx/domains')
-rw-r--r-- | sphinx/domains/cpp.py | 3 | ||||
-rw-r--r-- | sphinx/domains/python.py | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 46bb7353..acb8ba09 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -1028,7 +1028,8 @@ class CPPClassObject(CPPObject): signode += nodes.Text(' : ') for base in cls.bases: self.attach_modifiers(signode, base, 'private') - signode += nodes.emphasis(unicode(base.name), unicode(base.name)) + signode += nodes.emphasis(unicode(base.name), + unicode(base.name)) signode += nodes.Text(', ') signode.pop() # remove the trailing comma diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 98d93545..779b071a 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -422,13 +422,14 @@ class PyModule(Directive): env.domaindata['py']['modules'][modname] = \ (env.docname, self.options.get('synopsis', ''), self.options.get('platform', ''), 'deprecated' in self.options) - # make a duplicate entry in 'objects' to facilitate searching for the - # module in PythonDomain.find_obj() + # make a duplicate entry in 'objects' to facilitate searching for + # the module in PythonDomain.find_obj() env.domaindata['py']['objects'][modname] = (env.docname, 'module') - targetnode = nodes.target('', '', ids=['module-' + modname], ismod=True) + targetnode = nodes.target('', '', ids=['module-' + modname], + ismod=True) self.state.document.note_explicit_target(targetnode) - # the platform and synopsis aren't printed; in fact, they are only used - # in the modindex currently + # the platform and synopsis aren't printed; in fact, they are only + # used in the modindex currently ret.append(targetnode) indextext = _('%s (module)') % modname inode = addnodes.index(entries=[('single', indextext, |