#include "debug.h"
#include "Encoding.h"
#include "Language.h"
+#include "Layout.h"
#include "LyXRC.h"
#include "OutputParams.h"
#include "Paragraph.h"
BufferParams const & bparams = buf.params();
- Layout_ptr const & style = pit->layout();
+ LayoutPtr const & style = pit->layout();
Language const * const par_language = pit->getParLanguage(bparams);
Language const * const doc_language = bparams.language;
os << '\n';
texrow.newline();
} else if (par->params().depth() > pit->params().depth()) {
- if (par->layout()->isParagraph()) {
+ if (par->layout()->isParagraph()) {
+ // Thinko!
+ // How to handle this? (Lgb)
+ //&& !suffixIs(os, "\n\n")
+ //) {
- // Thinko!
- // How to handle this? (Lgb)
- //&& !suffixIs(os, "\n\n")
- //) {
// There should be at least one '\n' already
// but we need there to be two for Standard
// paragraphs that are depth-increment'ed to be
texrow.newline();
}
- if (par != paragraphs.end())
+ if (par != paragraphs.end()) {
LYXERR(Debug::LATEX) << "TeXEnvironment...done " << &*par << endl;
+ }
return par;
}
LYXERR(Debug::LATEX) << "TeXOnePar... " << &*pit << " '"
<< everypar << "'" << endl;
BufferParams const & bparams = buf.params();
- Layout_ptr style;
+ LayoutPtr style;
// In an inset with unlimited length (all in one row),
// force layout to default
texrow.newline();
}
- if (boost::next(pit) != paragraphs.end())
+ if (boost::next(pit) != paragraphs.end()) {
LYXERR(Debug::LATEX) << "TeXOnePar...done " << &*boost::next(pit) << endl;
+ }
return ++pit;
}
// any environment other than the default layout of the
// text class to be valid!
if (!par->forceDefaultParagraphs()) {
- Layout_ptr const & layout = par->layout();
+ LayoutPtr const & layout = par->layout();
if (layout->intitle) {
if (already_title) {