383 |
def visit_citation_reference(self, node): |
def visit_citation_reference(self, node): |
384 |
href = '' |
href = '' |
385 |
if node.has_key('refid'): |
if node.has_key('refid'): |
386 |
|
if node['refid'].startswith('ref'): |
387 |
|
node['refid'] = node['refid'][4:] |
388 |
href = '#' + node['refid'] |
href = '#' + node['refid'] |
389 |
elif node.has_key('refname'): |
elif node.has_key('refname'): |
390 |
href = '#' + self.document.nameids[node['refname']] |
href = '#' + self.document.nameids[node['refname']] |
732 |
del atts['uri'] |
del atts['uri'] |
733 |
if not atts.has_key('alt'): |
if not atts.has_key('alt'): |
734 |
atts['alt'] = atts['src'] |
atts['alt'] = atts['src'] |
735 |
|
if atts.has_key('label'): |
736 |
|
atts['id'] = atts['label'] |
737 |
|
del atts['label'] |
738 |
if isinstance(node.parent, nodes.TextElement): |
if isinstance(node.parent, nodes.TextElement): |
739 |
self.context.append('') |
self.context.append('') |
740 |
else: |
else: |