python: highlighter would produce wrong end of span tag when user methods were not set

This commit is contained in:
Jean-Francois Dockes 2013-10-29 09:13:49 +01:00
parent a75d4c24ff
commit 65f00ff711

View File

@ -1127,7 +1127,7 @@ public:
if (m_methods)
res = PyObject_CallMethod(m_methods, (char *)"endMatch", 0);
if (res == 0)
return "</span res is null>";
return "</span>";
PyObject *res1 = res;
if (PyUnicode_Check(res))
res1 = PyUnicode_AsUTF8String(res);