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
1e798e18
Commit
1e798e18
authored
Jun 25, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Took out "lettpunc" and added some convenience aliases for ST regexes.
parent
7cea5781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
lib/python/StructuredText/STletters.py
lib/python/StructuredText/STletters.py
+12
-4
No files found.
lib/python/StructuredText/STletters.py
View file @
1e798e18
import
string
import
string
try
:
try
:
del
string
del
string
import
locale
import
locale
...
@@ -9,7 +8,16 @@ except:
...
@@ -9,7 +8,16 @@ except:
import
string
import
string
letters
=
string
.
letters
def
punc_func
(
exclude
):
punctuations
=
string
.
punctuation
punc
=
r''
for
char
in
string
.
punctuation
:
if
char
not
in
exclude
:
punc
=
punc
+
r'\
%s
' % char
return punc
lettpunc
=
letters
+
punctuations
digits = string.digits
letters = string.letters
literal_punc = punc_func("'")
strongem_punc = punc_func('*')
under_punc = punc_func('_')
phrase_delimiters = r'
\
s
\
.
\
,
\
?
\
/
\
!
\
&
\
(
\
)
'
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