|
From: <gr...@us...> - 2024-05-05 11:33:42
|
Revision: 9686
http://sourceforge.net/p/docutils/code/9686
Author: grubert
Date: 2024-05-05 11:33:37 +0000 (Sun, 05 May 2024)
Log Message:
-----------
manpage writer: Remove code for unused emdash bullets.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/manpage.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2024-05-04 09:44:39 UTC (rev 9685)
+++ trunk/docutils/HISTORY.txt 2024-05-05 11:33:37 UTC (rev 9686)
@@ -32,7 +32,9 @@
- Adapt `DocInfo` to fixed element categories.
+* docutils/writers/manpage.py
+ - Remove code for unused emdash bullets.
Release 0.21.2 (2024-04-23)
===========================
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2024-05-04 09:44:39 UTC (rev 9685)
+++ trunk/docutils/docutils/writers/manpage.py 2024-05-05 11:33:37 UTC (rev 9686)
@@ -315,7 +315,6 @@
class EnumChar:
enum_style = {
'bullet': '\\(bu',
- 'emdash': '\\(em',
}
def __init__(self, style):
@@ -342,8 +341,6 @@
def __next__(self):
if self._style == 'bullet':
return self.enum_style[self._style]
- elif self._style == 'emdash':
- return self.enum_style[self._style]
self._cnt += 1
# TODO add prefix postfix
if self._style == 'arabic':
@@ -367,6 +364,8 @@
if 'enumtype' in node:
self._list_char.append(EnumChar(node['enumtype']))
else:
+ # INFO node['bullet'] contains the bullet style "*+-"
+ # BUT man pages only use "*".
self._list_char.append(EnumChar('bullet'))
if len(self._list_char) > 1:
# indent nested lists
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|