summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmd2man4
1 files changed, 2 insertions, 2 deletions
diff --git a/md2man b/md2man
index f4f8ca4f..1b84162d 100755
--- a/md2man
+++ b/md2man
@@ -339,9 +339,9 @@ def manify(txt):
def htmlify(txt):
- return re.sub(r'(\W)-', r'\1‑',
+ return re.sub(r'(^|\W)-', r'\1-⁠',
txt.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('"', '&quot;')
- .replace('--', '&#8209;&#8209;').replace("\xa0-", '&nbsp;&#8209;').replace("\xa0", '&nbsp;'))
+ .replace("\xa0", '&nbsp;').replace('--', '\4\4')).replace('\4', '-&#8288;')
def warn(*msg):