summaryrefslogtreecommitdiff
path: root/smartypants.py
diff options
context:
space:
mode:
authorYu-Jie Lin <livibetter@gmail.com>2013-08-28 16:02:41 +0800
committerYu-Jie Lin <livibetter@gmail.com>2013-08-28 16:02:41 +0800
commit106db552c20c65c2b8bff3ef1ffd37e6a154a5a2 (patch)
tree509ab90e5a0d900ba4366783e0184a0326bb0e8f /smartypants.py
parent96e7daeaf178c8460547c8358dad001eea6d61e4 (diff)
downloadsmartypants-106db552c20c65c2b8bff3ef1ffd37e6a154a5a2.tar.gz
fix --- being converted in educateDashes
The original Perl smartypants.pl does not do such conversion. The ``---`` convsersion was added in v1.5_1.5 (eed4a8a16f11).
Diffstat (limited to 'smartypants.py')
-rwxr-xr-xsmartypants.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/smartypants.py b/smartypants.py
index 9e4d038..33e5e94 100755
--- a/smartypants.py
+++ b/smartypants.py
@@ -488,8 +488,7 @@ def educateDashes(text):
Convert ``--`` in *text* into em-dash HTML entities.
"""
- text = re.sub('---', '&#8211;', text) # en (yes, backwards)
- text = re.sub('--', '&#8212;', text) # em (yes, backwards)
+ text = re.sub('--', '&#8212;', text)
return text