diff options
author | Martin Altmayer <altmayer@posteo.de> | 2014-08-11 20:04:49 +0200 |
---|---|---|
committer | Martin Altmayer <altmayer@posteo.de> | 2014-08-11 20:05:41 +0200 |
commit | 927ad008b51e5fa265b6e8497805ff09ec098d65 (patch) | |
tree | 73ec862bd033ba0d498b1112fb56d211b8f4920b /markdown | |
parent | af85029ca443609b803ebc83e806c1ee115db900 (diff) | |
download | markdown-927ad008b51e5fa265b6e8497805ff09ec098d65.tar.gz markdown-927ad008b51e5fa265b6e8497805ff09ec098d65.tar.bz2 markdown-927ad008b51e5fa265b6e8497805ff09ec098d65.zip |
Fixed an old typo in the smarty extension and added a test case.
Diffstat (limited to 'markdown')
-rw-r--r-- | markdown/extensions/smarty.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/smarty.py b/markdown/extensions/smarty.py index cc6b694..ca9edd2 100644 --- a/markdown/extensions/smarty.py +++ b/markdown/extensions/smarty.py @@ -102,8 +102,8 @@ substitutions = { # Special case if the very first character is a quote # followed by punctuation at a non-word-break. Close the quotes by brute force: -singleQuoteStartRe = r"^'(?=%s\\B)" % punctClass -doubleQuoteStartRe = r'^"(?=%s\\B)' % punctClass +singleQuoteStartRe = r"^'(?=%s\B)" % punctClass +doubleQuoteStartRe = r'^"(?=%s\B)' % punctClass # Special case for double sets of quotes, e.g.: # <p>He said, "'Quoted' words in a larger quote."</p> |