Commit e0b6f794 authored by Ken Manheimer's avatar Ken Manheimer

Handle links that include '#' named links.

parent d8b632c3
...@@ -164,7 +164,7 @@ Special symbology is used to indicate special constructs: ...@@ -164,7 +164,7 @@ Special symbology is used to indicate special constructs:
Together with the previous rule this allows easy coding of references or Together with the previous rule this allows easy coding of references or
end notes. end notes.
$Id: StructuredText.py,v 1.14 1999/03/11 01:35:19 klm Exp $''' $Id: StructuredText.py,v 1.15 1999/03/11 22:40:18 klm Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -216,6 +216,9 @@ $Id: StructuredText.py,v 1.14 1999/03/11 01:35:19 klm Exp $''' ...@@ -216,6 +216,9 @@ $Id: StructuredText.py,v 1.14 1999/03/11 01:35:19 klm Exp $'''
# (540) 371-6909 # (540) 371-6909
# #
# $Log: StructuredText.py,v $ # $Log: StructuredText.py,v $
# Revision 1.15 1999/03/11 22:40:18 klm
# Handle links that include '#' named links.
#
# Revision 1.14 1999/03/11 01:35:19 klm # Revision 1.14 1999/03/11 01:35:19 klm
# Fixed a small typo, and refined the module docstring link example, in # Fixed a small typo, and refined the module docstring link example, in
# order to do a checkin to exercise the CVS repository mirroring. Might # order to do a checkin to exercise the CVS repository mirroring. Might
...@@ -416,7 +419,7 @@ class StructuredText: ...@@ -416,7 +419,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,
...@@ -425,7 +428,7 @@ class StructuredText: ...@@ -425,7 +428,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