/[navidoc]/navidoc/navidoc/writers/xhtml11.py
ViewVC logotype

Diff of /navidoc/navidoc/writers/xhtml11.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by humppake, Thu Apr 10 09:59:50 2003 UTC revision 1.2 by humppake, Fri May 23 13:41:40 2003 UTC
# Line 383  class HTMLTranslator(nodes.NodeVisitor): Line 383  class HTMLTranslator(nodes.NodeVisitor):
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']]
# Line 730  class HTMLTranslator(nodes.NodeVisitor): Line 732  class HTMLTranslator(nodes.NodeVisitor):
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:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26