Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d203d2a2
Commit
d203d2a2
authored
Apr 28, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raw-ify all substrings to tagre regex.
parent
ef0434a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+7
-7
No files found.
lib/python/DocumentTemplate/DT_String.py
View file @
d203d2a2
...
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"$Id: DT_String.py,v 1.4
2 2001/04/27 20:59:34 shane
Exp $"
"$Id: DT_String.py,v 1.4
3 2001/04/28 07:20:28 chrism
Exp $"
from
string
import
split
,
strip
import
thread
,
re
...
...
@@ -156,12 +156,12 @@ class String:
def
tagre
(
self
):
return
re
.
compile
(
r'%('
# beginning
'(?P<name>[a-zA-Z0-9_/.-]+)'
# tag name
'('
'[
\
000
- ]+'
# space after tag name
'(?P<args>([^)"]+("[^"]*")?)*)'
# arguments
')?'
')(?P<fmt>[0-9]*[.]?[0-9]*[a-z]|[]![])'
# end
r
'(?P<name>[a-zA-Z0-9_/.-]+)'
# tag name
r
'('
r
'[\000- ]+'
# space after tag name
r
'(?P<args>([^)"]+("[^"]*")?)*)'
# arguments
r
')?'
r
')(?P<fmt>[0-9]*[.]?[0-9]*[a-z]|[]![])'
# end
,
re
.
I
)
_parseTag__roles__
=
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment