int i = 0;
while (!empty() && (isNewline(0) || isLineSeparator(0))) {
- pimpl_->eraseIntern(0);
+ // Set Change::Type to Change::INSERTED to quietly remove it
+ setChange(0, Change::INSERTED);
+ erase(0);
++i;
}
{
if (!insetlist.empty()) {
InsetBase * inset = insetlist.begin()->inset;
- if (inset->lyxCode() == InsetBase::BIBTEX_CODE)
+ if (inset->lyxCode() == InsetBase::BIBITEM_CODE)
return static_cast<InsetBibitem *>(inset);
}
return 0;
// Needed if there is an optional argument but no contents.
if (body_pos > 0 && body_pos == size()) {
- os << "]~";
+ os << "}]~";
return_value = false;
}