Commit 2c15c9ad authored by 's avatar

Allow ~ in hrefs.

parent d0187e93
...@@ -204,7 +204,7 @@ Special symbology is used to indicate special constructs: ...@@ -204,7 +204,7 @@ Special symbology is used to indicate special constructs:
</TABLE> </TABLE>
$Id: StructuredText.py,v 1.25 2000/02/17 00:53:24 klm Exp $''' $Id: StructuredText.py,v 1.26 2000/03/14 17:22:04 brian Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -256,6 +256,9 @@ $Id: StructuredText.py,v 1.25 2000/02/17 00:53:24 klm Exp $''' ...@@ -256,6 +256,9 @@ $Id: StructuredText.py,v 1.25 2000/02/17 00:53:24 klm Exp $'''
# (540) 371-6909 # (540) 371-6909
# #
# $Log: StructuredText.py,v $ # $Log: StructuredText.py,v $
# Revision 1.26 2000/03/14 17:22:04 brian
# Allow ~ in hrefs.
#
# Revision 1.25 2000/02/17 00:53:24 klm # Revision 1.25 2000/02/17 00:53:24 klm
# HTML._str(): We were getting preformatted examples rendered twice, # HTML._str(): We were getting preformatted examples rendered twice,
# second time without preformatting. Problem was a missing 'continue' # second time without preformatting. Problem was a missing 'continue'
...@@ -571,7 +574,7 @@ class StructuredText: ...@@ -571,7 +574,7 @@ class StructuredText:
aStructuredString = gsub( aStructuredString = gsub(
'\"\([^\"\0]+\)\":' # title: <"text":> '\"\([^\"\0]+\)\":' # title: <"text":>
+ ('\([-:a-zA-Z0-9_,./?=@#]+%s\)' + ('\([-:a-zA-Z0-9_,./?=@#~]+%s\)'
% not_punctuation_or_whitespace) % not_punctuation_or_whitespace)
+ optional_trailing_punctuation + optional_trailing_punctuation
+ trailing_space, + trailing_space,
...@@ -580,7 +583,7 @@ class StructuredText: ...@@ -580,7 +583,7 @@ class StructuredText:
aStructuredString = gsub( aStructuredString = gsub(
'\"\([^\"\0]+\)\",[\0- ]+' # title: <"text", > '\"\([^\"\0]+\)\",[\0- ]+' # title: <"text", >
+ ('\([a-zA-Z]*:[-:a-zA-Z0-9_,./?=@#]*%s\)' + ('\([a-zA-Z]*:[-:a-zA-Z0-9_,./?=@#~]*%s\)'
% not_punctuation_or_whitespace) % not_punctuation_or_whitespace)
+ optional_trailing_punctuation + optional_trailing_punctuation
+ trailing_space, + trailing_space,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment