Changeset 1069


Ignore:
Timestamp:
Aug 12, 2012 9:36:24 PM (10 years ago)
Author:
jemian
Message:

refs #15

File:
1 edited

Legend:

Unmodified
Added
Removed
  • specdomain/trunk/src/specdomain/sphinxcontrib/specdomain.py

    r1067 r1069  
    339339        """
    340340        key = ":".join((refnode['refdomain'], refnode['reftype']))
    341         refnode[key] = env.temp_data.get(key)        # key was 'spec:def'
     341        value = env.temp_data.get(key)
     342        refnode[key] = value
    342343        if not has_explicit_title:
    343344            title = title.lstrip(':')   # only has a meaning for the target
     
    368369            #('single', _('environment variable; %s') % varname, tgtid, ''),
    369370        ]
    370         targetnode = nodes.target('', '', ids=[tgtid])
     371        targetnode = nodes.target(node.rawsource, '', ids=[tgtid])
    371372        document.note_explicit_target(targetnode)
    372373        return [indexnode, targetnode, node], []
Note: See TracChangeset for help on using the changeset viewer.