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('&', '&').replace('<', '<').replace('>', '>').replace('"', '"') - .replace('--', '‑‑').replace("\xa0-", ' ‑').replace("\xa0", ' ')) + .replace("\xa0", ' ').replace('--', '\4\4')).replace('\4', '-⁠') def warn(*msg):