SF.net SVN: docutils:[10121 ] trunk/docutils/docutils/ writers/manpage.py
grubert--- via Docutils-checkins <[email protected]> Mon, 05 May 2025 21:14:44 +0000
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 10121
http://sourceforge.net/p/docutils/code/10121
Author: grubert
Date: 2025-05-05 21:14:44 +0000 (Mon, 05 May 2025)
Log Message:
-----------
Fix comment
Modified Paths:
--------------
trunk/docutils/docutils/writers/manpage.py
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2025-05-05 13:51:57 UTC (rev 10120)
+++ trunk/docutils/docutils/writers/manpage.py 2025-05-05 21:14:44 UTC (rev 10121)
@@ -359,8 +359,11 @@
# a) a line end, disable it
if self.body[i+1][0] in ('\n', '\r'):
self.body[i+1] = '.' + self.body[i+1]
- # b) with a separator: move the 1st char to current item
+ # b) with a separator: moving the 1st char to current item
+ # would require to check the second, use \c instead.
else:
+ # append \c to end the text line, .ME or .UE without inserting
+ # space or attempting a break.
self.body[i] = "%s \\c\n" % (self.body[i][:3])
return ''.join(self.head + self.body + self.foot)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.