diff options
author | Erik van Zijst <erik.van.zijst@gmail.com> | 2012-08-14 16:16:24 -0700 |
---|---|---|
committer | Erik van Zijst <erik.van.zijst@gmail.com> | 2012-08-14 16:16:24 -0700 |
commit | dbd6676ca554fb12aa82510a67f5e89ec6ada91c (patch) | |
tree | 39ed7ab38ccada7dc6a75a449e89d4da4a697b95 /tests/pl/Tests_2007/Literal quotes in titles.html | |
parent | 2789026a0114dba2e8d60be71b4d7c8cc6eb61ed (diff) | |
download | markdown-dbd6676ca554fb12aa82510a67f5e89ec6ada91c.tar.gz markdown-dbd6676ca554fb12aa82510a67f5e89ec6ada91c.tar.bz2 markdown-dbd6676ca554fb12aa82510a67f5e89ec6ada91c.zip |
Fixed unicode breakage.
slugify() requires unicode, not a str instance. This causes the extension to
crash:
File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/__init__.py" in markdown
386. return md.convert(text)
File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/__init__.py" in convert
287. newRoot = treeprocessor.run(root)
File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/extensions/headerid.py" in run
140. id = slugify(''.join(itertext(elem)), sep)
File "/home/erik/virtualenv/bb/local/lib/python2.7/site-packages/markdown/extensions/headerid.py" in slugify
93. value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
TypeError: must be unicode, not str
Diffstat (limited to 'tests/pl/Tests_2007/Literal quotes in titles.html')
0 files changed, 0 insertions, 0 deletions