[Zope-Checkins] CVS: Packages/StructuredText - DocumentClass.py:1.22.2.9 STletters.py:1.2.10.2

Andreas Jung andreasjung@cvs.zope.org
Mon, 6 Aug 2001 09:42:01 -0400


Update of /cvs-repository/Packages/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv24241

Modified Files:
      Tag: Zope-2_4-branch
	DocumentClass.py STletters.py 
Log Message:
Collector #2481: adjusted punctuation for link generation
(not working with ! inside quoted text)



=== Packages/StructuredText/DocumentClass.py 1.22.2.8 => 1.22.2.9 ===
 from string import split, join, replace, expandtabs, strip, find, rstrip
 from STletters import letters, digits, literal_punc, under_punc,\
-     strongem_punc, phrase_delimiters
+     strongem_punc, phrase_delimiters,dbl_quoted_punc
 
 StringType=type('')
 ListType=type([])
@@ -950,7 +950,7 @@
            return None
 
     ## Some constants to make the doc_href() regex easier to read.
-    _DQUOTEDTEXT = r'("[ %s0-9\n\r\-\.\,\;\(\)\/\:\/\*\']+")' % letters ## double quoted text
+    _DQUOTEDTEXT = r'("[ %s0-9\n\r%s]+")' % (letters,dbl_quoted_punc) ## double quoted text
     _ABSOLUTE_URL=r'((http|https|ftp|mailto|file|about)[:/]+?[%s0-9_\@\.\,\?\!\/\:\;\-\#\~\=\&\%%]+)' % letters
     _ABS_AND_RELATIVE_URL=r'([%s0-9_\@\.\,\?\!\/\:\;\-\#\~\=\&\%%]+)' % letters
 


=== Packages/StructuredText/STletters.py 1.2.10.1 => 1.2.10.2 ===
 letters     = string.letters
 literal_punc = punc_func("'")
+dbl_quoted_punc = punc_func("\"")
 strongem_punc = punc_func('*')
 under_punc = punc_func('_')
 phrase_delimiters = r'\s\.\,\?\/\!\&\(\)'