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

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9986
          http://sourceforge.net/p/docutils/code/9986
Author:   grubert
Date:     2024-11-18 16:50:28 +0000 (Mon, 18 Nov 2024)
Log Message:
-----------
if macro references is active output refuri always.

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

Modified: trunk/docutils/HISTORY.rst
===================================================================
--- trunk/docutils/HISTORY.rst	2024-11-18 16:26:33 UTC (rev 9985)
+++ trunk/docutils/HISTORY.rst	2024-11-18 16:50:28 UTC (rev 9986)
@@ -195,6 +195,7 @@
     to enable/disable usage of *man* macros .UR/.UE.
   - Do not output .UR/.UE macros without refuri in node.
   - Use .MT/.ME macros for mailto.uris. 
+  - If macro references is active output refuri always. 
 
 * docutils/writers/null.py
 

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2024-11-18 16:26:33 UTC (rev 9985)
+++ trunk/docutils/docutils/writers/manpage.py	2024-11-18 16:50:28 UTC (rev 9986)
@@ -1102,8 +1102,7 @@
             else:
                 self.body.append(".UR ")
                 self.context.append('.UE\n')
-            if not node['refuri'].endswith(node.astext()):
-                self.body.append("%s\n" % node['refuri'])
+            self.body.append("%s\n" % node['refuri'])
         else:
             self.context.append('')
 

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.