[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Fri Jun 19 06:00:23 UTC 2020


The branch, master has been updated
       via  e08f6003 Use `-⁠` instead of `‑`
      from  e4068455 Comment must be indented to avoid ending the list item.

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e08f60037830ebad2ca1fefc12c4819d6499012d
Author: Wayne Davison <wayne at opencoder.net>
Date:   Thu Jun 18 22:52:47 2020 -0700

    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.

-----------------------------------------------------------------------

Summary of changes:
 md2man | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

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):


-- 
The rsync repository.



More information about the rsync-cvs mailing list