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

grubert--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9775
          http://sourceforge.net/p/docutils/code/9775
Author:   grubert
Date:     2024-07-19 11:57:06 +0000 (Fri, 19 Jul 2024)
Log Message:
-----------
remove unused definition
more on groff style

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

Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py	2024-07-19 11:22:55 UTC (rev 9774)
+++ trunk/docutils/docutils/writers/manpage.py	2024-07-19 11:57:06 UTC (rev 9775)
@@ -218,19 +218,32 @@
         self.authors = []
         self.section_level = 0
         self._indent = [0]
-        # central definition of simple processing rules
-        # what to output on : visit, depart
         # Do not use paragraph requests ``.PP`` because these set indentation.
         # use ``.sp``. Remove superfluous ``.sp`` in ``astext``.
-        #
+
         # Fonts are put on a stack, the top one is used.
         # ``.ft P`` or ``\\fP`` pop from stack.
         # But ``.BI`` seams to fill stack with BIBIBIBIB...
         # ``B`` bold, ``I`` italic, ``R`` roman should be available.
+
+        # from groff_man_style(7)
         #
+        # \c   End a text line without inserting space or attempting a
+        #      break. ...
+        #      The next line is interpreted as usual and can include a 
+        #      macro call (contrast with \newline). ...
+        #      useful when three font styles are needed in a single
+        #      word, as in a command synopsis.
+        #
+        #             .RB [ \-\-stylesheet=\c
+        #             .IR name ]
+
         # Requests start wit a dot ``.`` or the no-break control character,
         # a neutral apostrophe ``'`` suppresses the break implied by some
-        # requests.
+        # requests. 
+
+        # central definition of simple processing rules
+        # what to output on : visit, depart
         self.defs = {
                 'indent': ('.INDENT %.1f\n', '.UNINDENT\n'),
                 'definition_list_item': ('.TP', ''),  # par. with hanging tag
@@ -240,7 +253,6 @@
 
                 'option_list_item': ('.TP\n', ''),
 
-                'reference': (r'\fI\%', r'\fP'),
                 'emphasis': ('\\fI', '\\fP'),
                 'strong': ('\\fB', '\\fP'),
                 'title_reference': ('\\fI', '\\fP'),

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.