SF.net SVN: docutils:[9576] trunk/docutils

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9576
          http://sourceforge.net/p/docutils/code/9576
Author:   grubert
Date:     2024-03-16 16:45:21 +0000 (Sat, 16 Mar 2024)
Log Message:
-----------
Skip footer to avoid the link to document source in the manpage.

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

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2024-03-16 16:36:35 UTC (rev 9575)
+++ trunk/docutils/HISTORY.txt	2024-03-16 16:45:21 UTC (rev 9576)
@@ -173,6 +173,7 @@
 
 * docutils/writers/manpage.py
 
+  - Skip footer to avoid the link to document source in the manpage.
   - Add multiple definition list term support, see feature #60.
   - Add preprocessor hinting tbl first line, see bug #477.
   - Change tbl-Tables using box option, see bug #475.

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2024-03-16 16:36:35 UTC (rev 9575)
+++ trunk/docutils/docutils/writers/manpage.py	2024-03-16 16:45:21 UTC (rev 9576)
@@ -698,6 +698,8 @@
     def visit_footer(self, node):
         self.document.reporter.warning('"footer" not supported',
                                        base_node=node)
+        # avoid output the link to document source
+        raise nodes.SkipNode
 
     def depart_footer(self, node):
         pass

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.