[Zope-dev] Structured text + ~s in URLs...

Chris McDonough chrism@digicool.com
Mon, 31 Jan 2000 23:48:11 -0500


Jason,

Thanks!  I will put this in the Collector
(http://classic.zope.org:8080/Collector)


Edward Jason Riedy wrote:
> 
> Structured text doesn't like ~s in URLs.  It should.
> 
> Jason
> 
> --- StructuredText.py.orig      Mon Jan 31 19:00:29 2000
> +++ StructuredText.py   Mon Jan 31 19:00:30 2000
> @@ -473,7 +473,7 @@
> 
>          aStructuredString = gsub(
>              '\"\([^\"\0]+\)\":'         # title: <"text":>
> -            + ('\([-:a-zA-Z0-9_,./?=@#]+%s\)'
> +            + ('\([-:a-zA-Z0-9_,./?=@#~]+%s\)'
>                 % not_punctuation_or_whitespace)
>              + optional_trailing_punctuation
>              + trailing_space,
> @@ -482,7 +482,7 @@
> 
>          aStructuredString = gsub(
>              '\"\([^\"\0]+\)\",[\0- ]+'            # title: <"text", >
> -            + ('\([a-zA-Z]*:[-:a-zA-Z0-9_,./?=@#]*%s\)'
> +            + ('\([a-zA-Z]*:[-:a-zA-Z0-9_,./?=@#~]*%s\)'
>                 % not_punctuation_or_whitespace)
>              + optional_trailing_punctuation
>              + trailing_space,
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chris McDonough
Digital Creations, Inc.
Zope - http://www.zope.org