diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-28 16:02:41 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-28 16:02:41 +0800 |
commit | 106db552c20c65c2b8bff3ef1ffd37e6a154a5a2 (patch) | |
tree | 509ab90e5a0d900ba4366783e0184a0326bb0e8f /smartypants.py | |
parent | 96e7daeaf178c8460547c8358dad001eea6d61e4 (diff) | |
download | smartypants-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-x | smartypants.py | 3 |
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('---', '–', text) # en (yes, backwards) - text = re.sub('--', '—', text) # em (yes, backwards) + text = re.sub('--', '—', text) return text |