mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-10 10:27:13 -04:00
Use -⁠ instead of ‑
Using a non-breaking zero-width char after a dash makes the browser avoiding breaking on that dash and also makes it match a dash in a search. This is better than a non-breaking dash char, which does not match a dash in a search.
This commit is contained in:
4
md2man
4
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):
|
||||
|
||||
Reference in New Issue
Block a user