python: highlighter would produce wrong end of span tag when user methods were not set
This commit is contained in:
parent
a75d4c24ff
commit
65f00ff711
@ -1127,7 +1127,7 @@ public:
|
|||||||
if (m_methods)
|
if (m_methods)
|
||||||
res = PyObject_CallMethod(m_methods, (char *)"endMatch", 0);
|
res = PyObject_CallMethod(m_methods, (char *)"endMatch", 0);
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
return "</span res is null>";
|
return "</span>";
|
||||||
PyObject *res1 = res;
|
PyObject *res1 = res;
|
||||||
if (PyUnicode_Check(res))
|
if (PyUnicode_Check(res))
|
||||||
res1 = PyUnicode_AsUTF8String(res);
|
res1 = PyUnicode_AsUTF8String(res);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user