SF.net SVN: docutils:[9708 ] trunk/docutils/docutils/w riters/manpage.py

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9708
          http://sourceforge.net/p/docutils/code/9708
Author:   grubert
Date:     2024-05-17 06:54:27 +0000 (Fri, 17 May 2024)
Log Message:
-----------
visit_label comment and cleanup

Modified Paths:
--------------
    trunk/docutils/docutils/writers/manpage.py

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2024-05-16 14:46:59 UTC (rev 9707)
+++ trunk/docutils/docutils/writers/manpage.py	2024-05-17 06:54:27 UTC (rev 9708)
@@ -784,9 +784,8 @@
         pass
 
     def visit_label(self, node):
-        # footnote and citation
-        if (isinstance(node.parent, nodes.footnote)
-            or isinstance(node.parent, nodes.citation)):
+        # footnote and citation labels are written in their visit_ functions.
+        if (isinstance(node.parent, (nodes.footnote, nodes.citation))):
             raise nodes.SkipNode
         self.document.reporter.warning('"unsupported "label"',
                                        base_node=node)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.