return false; // no end read yet
}
+ // we have to reset the font as in the old format after a float
+ // the font was automatically reset!
+ font = LyXFont(LyXFont::ALL_INHERIT, params.language);
+
// Here we need to check for \end_deeper and handle that
// before we do the footnote parsing.
// This _is_ a hack! (Lgb)
par->checkInsertChar(font);
// insert the string, don't insert doublespace
bool space_inserted = true;
+ bool autobreakrows = !par->inInset() ||
+ static_cast<InsetText *>(par->inInset())->getAutoBreakRows();
for(string::const_iterator cit = str.begin();
cit != str.end(); ++cit) {
if (*cit == '\n') {
- if (par->size() || layout.keepempty) {
+ if (autobreakrows && (par->size() || layout.keepempty)) {
par->breakParagraph(params, pos,
layout.isEnvironment());
par = par->next();
p1 = static_cast<PAR_TAG>(p1 & ~p2);
}
-} // namespace anon
+} // anon
// Handle internal paragraph parsing -- layout already processed.
void Buffer::simpleLinuxDocOnePar(ostream & os,
- Paragraph * par,
- Paragraph::depth_type /*depth*/)
+ Paragraph * par,
+ Paragraph::depth_type /*depth*/)
{
LyXLayout const & style =
textclasslist[params.textclass][par->layout()];
// Print an error message.
-void Buffer::sgmlError(Paragraph * par, int pos,
- string const & message) const
+void Buffer::sgmlError(Paragraph * /*par*/, int /*pos*/,
+ string const & /*message*/) const
{
#warning This is wrong we cannot insert an inset like this!!!
// I guess this was Jose' so I explain you more or less why this