summaryrefslogtreecommitdiff
path: root/sandbox/davidg/unispace.py
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-06-30 01:04:10 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-06-30 01:04:10 +0000
commitd030bf6018b9c832f0a39f5fb731ca6843f2e8a4 (patch)
tree5d910de96c800cff325184c9f97d8af86344215e /sandbox/davidg/unispace.py
parent7e4c5f090ba307debc4ee1402075ab631c624a49 (diff)
downloaddocutils-d030bf6018b9c832f0a39f5fb731ca6843f2e8a4.tar.gz
removed zero-width non-joiner
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4646 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/davidg/unispace.py')
-rwxr-xr-xsandbox/davidg/unispace.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sandbox/davidg/unispace.py b/sandbox/davidg/unispace.py
index 198acbad4..d69400517 100755
--- a/sandbox/davidg/unispace.py
+++ b/sandbox/davidg/unispace.py
@@ -10,7 +10,7 @@ Regular expressions:
1. '\\s'
2. '\\s', re.UNICODE
-3. u'(?![\xa0\u202f])[\\s\u200c]', re.UNICODE
+3. u'(?![\xa0\u202f])\\s', re.UNICODE
=== ========= ======= ========================= =======
Cat Codepoint Decimal Name/Description Regexps
@@ -40,7 +40,6 @@ Zs U+2008 8200 PUNCTUATION SPACE 2 3
Zs U+2009 8201 THIN SPACE 2 3
Zs U+200a 8202 HAIR SPACE 2 3
Zs U+200b 8203 ZERO WIDTH SPACE 2 3
-Cf U+200c 8204 ZERO WIDTH NON-JOINER 3
Zl U+2028 8232 LINE SEPARATOR 2 3
Zp U+2029 8233 PARAGRAPH SEPARATOR 2 3
Zs U+202f 8239 NARROW NO-BREAK SPACE 2
@@ -79,7 +78,7 @@ charnames = {9: '(HT) TAB \\t',
pats = [re.compile(r'\s'),
re.compile(r'\s', re.UNICODE),
- re.compile(u'(?![\u00a0\u202f])[\\s\u200c]', re.UNICODE),]
+ re.compile(u'(?![\u00a0\u202f])\\s', re.UNICODE),]
border = '=== ========= ======= ========================= ======='
header = 'Cat Codepoint Decimal Name/Description Regexps'