~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/writers/texinfo.py

  • Committer: Vincent Ladeuil
  • Date: 2011-03-11 11:33:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5715.
  • Revision ID: v.ladeuil+lp@free.fr-20110311113333-o55cclvfzdkrzlov
The problem wasn't due to sphinx version but to a spurious change in release-notes/bzr-2.2.txt, we still have to add support for topics though.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
        # FIXME: Using a different visitor specific to toctree may be a better
144
144
        # design and makes code clearer. -- vila 20100708
145
145
        if node.has_key('toctree'):
146
 
            node.parent.collect_text('@menu\n')
147
 
            node.parent.collect_text(''.join(node['text']))
148
 
            node.parent.collect_text('@end menu\n')
 
146
            if node['text']:
 
147
                node.parent.collect_text('@menu\n')
 
148
                node.parent.collect_text(''.join(node['text']))
 
149
                node.parent.collect_text('@end menu\n')
149
150
            self.in_toctree = False
150
151
        elif self.in_toctree:
151
152
            # * FIRST-ENTRY-NAME:(FILENAME)NODENAME.     DESCRIPTION