SF.net SVN: docutils:[10096 ] trunk/sandbox/manpage-wr iter/ref-breakpoints.py

grubert--- via Docutils-checkins <[email protected]> Sun, 20 Apr 2025 12:36:17 +0000
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 10096
          http://sourceforge.net/p/docutils/code/10096
Author:   grubert
Date:     2025-04-20 12:36:17 +0000 (Sun, 20 Apr 2025)
Log Message:
-----------
add uri breakpoints before "."s

Modified Paths:
--------------
    trunk/sandbox/manpage-writer/ref-breakpoints.py

Modified: trunk/sandbox/manpage-writer/ref-breakpoints.py
===================================================================
--- trunk/sandbox/manpage-writer/ref-breakpoints.py	2025-04-20 12:34:28 UTC (rev 10095)
+++ trunk/sandbox/manpage-writer/ref-breakpoints.py	2025-04-20 12:36:17 UTC (rev 10096)
@@ -38,22 +38,23 @@
 from docutils.writers.manpage import insert_URI_breakpoints
 
 tests = (
-        ("///abc.de", r"///\:abc.de"),
-        ("/abc.de/", r"/\:abc.de/"),
-        ("http://abc.de", r"http://\:abc.de"),
-        ("http://abc.de/fg", r"http://\:abc.de/\:fg"),
-        ("http://abc.de/fg?q=abc", r"http://\:abc.de/\:fg?\:q=abc"),
-        ("http://abc.de/fg/?q=abc", r"http://\:abc.de/\:fg/?\:q=abc"),
-        ("http://abc.de/fg/?q=abc&me#", r"http://\:abc.de/\:fg/?\:q=abc&\:me#"),
-        ("[email protected]", r"me@\:home.here"),
+        ("Aaa ([email protected])", r'Aaa (aaa@\:bbb\:.ccc)'),
+        ("///abc.de", r"///\:abc\:.de"),
+        ("/abc.de/", r"/\:abc\:.de/"),
+        ("http://abc.de", r"http://\:abc\:.de"),
+        ("http://abc.de/fg", r"http://\:abc\:.de/\:fg"),
+        ("http://abc.de/fg?q=abc", r"http://\:abc\:.de/\:fg?\:q=abc"),
+        ("http://abc.de/fg/?q=abc", r"http://\:abc\:.de/\:fg/?\:q=abc"),
+        ("http://abc.de/fg/?q=abc&me#", r"http://\:abc\:.de/\:fg/?\:q=abc&\:me#"),
+        ("[email protected]", r"me@\:home\:.here"),
         ("https://docutils.sourceforge.io/docs/ref/rst/directives.html",
-         r"https://\:docutils.sourceforge.io/\:docs/\:ref/\:rst/\:directives.html"),
+         r"https://\:docutils\:.sourceforge\:.io/\:docs/\:ref/\:rst/\:directives\:.html"),
         ("[email protected]",
-         r"docutils-develop@\:lists.sourceforge.net"),
+         r"docutils-develop@\:lists\:.sourceforge\:.net"),
         )
 
 # after a slash series of
-# after?before at sign
+# after an at sign
 # after question marks
 # after question ampersands
 # after question number signs

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.