SF.net SVN: docutils:[9559] trunk/docutils/docutils/writers/manpage.py

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9559
          http://sourceforge.net/p/docutils/code/9559
Author:   grubert
Date:     2024-03-13 18:50:24 +0000 (Wed, 13 Mar 2024)
Log Message:
-----------
Put terms for multiple term definition lists on separate lines using .TQ macro

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

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2024-03-11 17:48:52 UTC (rev 9558)
+++ trunk/docutils/docutils/writers/manpage.py	2024-03-13 18:50:24 UTC (rev 9559)
@@ -203,7 +203,6 @@
         self._in_literal = False
         self.header_written = 0
         self._line_block = 0
-        self._second_term = False   # multiple term in definition list
         self.authors = []
         self.section_level = 0
         self._indent = [0]
@@ -1097,10 +1096,7 @@
         pass
 
     def visit_term(self, node):
-        if self._second_term:
-            self._second_term = False
-        else:
-            self.body.append('\n.B ')
+        self.body.append('\n.B ')
 
     def depart_term(self, node):
         _next = None
@@ -1108,8 +1104,7 @@
             _next = next(node.findall(condition=None, include_self=False,
                                      descend=False, siblings=True, ascend=False))
         if _next and isinstance(_next, nodes.term):
-            self.body.append('\\fR,\\fB \\')
-            self._second_term = True
+            self.body.append('\n.TQ')
         self.body.append('\n')
 
     def visit_tgroup(self, 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.