mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
DocBook: fix an assertion/crash.
This commit is contained in:
parent
e3bf51a4c3
commit
0ba9b7c0c8
@ -30,6 +30,7 @@
|
||||
#include "insets/InsetNote.h"
|
||||
|
||||
#include "support/lassert.h"
|
||||
#include "support/textutils.h"
|
||||
|
||||
#include <stack>
|
||||
#include <iostream>
|
||||
@ -896,7 +897,7 @@ void outputDocBookInfo(
|
||||
// even though they must be properly output if there is some abstract.
|
||||
abstract = os2.str();
|
||||
docstring cleaned = abstract;
|
||||
cleaned.erase(std::remove_if(cleaned.begin(), cleaned.end(), ::isspace), cleaned.end());
|
||||
cleaned.erase(std::remove_if(cleaned.begin(), cleaned.end(), lyx::isSpace), cleaned.end());
|
||||
|
||||
// Nothing? Then there is no abstract!
|
||||
if (cleaned.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user