SF.net SVN: docutils:[9606 ] trunk/docutils/docutils/w riters/manpage.py
grubert--- via Docutils-checkins <[email protected]>
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 9606
http://sourceforge.net/p/docutils/code/9606
Author: grubert
Date: 2024-03-30 09:44:37 +0000 (Sat, 30 Mar 2024)
Log Message:
-----------
Do not output reference with refid without targets. revert to TODO
Modified Paths:
--------------
trunk/docutils/docutils/writers/manpage.py
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2024-03-30 09:38:58 UTC (rev 9605)
+++ trunk/docutils/docutils/writers/manpage.py 2024-03-30 09:44:37 UTC (rev 9606)
@@ -166,6 +166,7 @@
words_and_spaces = re.compile(r'\S+| +|\n')
possibly_a_roff_command = re.compile(r'\.\w')
document_start = """Man page generated from reStructuredText."""
+ # TODO add "from docutils 0.21rc1."
def __init__(self, document):
nodes.NodeVisitor.__init__(self, document)
@@ -1009,8 +1010,7 @@
# if content has the "email" do not output "mailto:email"
if node['refuri'].endswith(node.astext()):
self.body.append(" <")
- elif 'refid' in node:
- self.body.append(" <")
+ #TODO elif 'refid' in node:
def depart_reference(self, node):
if 'refuri' in node:
@@ -1019,8 +1019,7 @@
self.body.append("> ")
else:
self.body.append(" <%s>\n" % node['refuri'])
- elif 'refid' in node:
- self.body.append("> ")
+ #TODO elif 'refid' in node:
def visit_revision(self, node):
self.visit_docinfo_item(node, 'revision')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.