mirror of https://github.com/kiwix/libkiwix.git
+ better fix the the multibyte character issue.
This commit is contained in:
parent
939155a9cb
commit
bd5205688a
|
@ -134,6 +134,8 @@ namespace kiwix {
|
|||
/* snippet */
|
||||
std::string snippet = std::string(this->htmlParser.dump, 0, 300);
|
||||
std::string::size_type last = snippet.find_last_of('.');
|
||||
if (last != snippet.npos)
|
||||
last = snippet.find_last_of(' ');
|
||||
if (last != snippet.npos)
|
||||
snippet = snippet.substr(0, last+1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue