BufferParams const & bparams = buf.params();
LayoutPtr style;
+ if (runparams_in.verbatim) {
+ int const dist = std::distance(paragraphs.begin(), pit);
+ Font const outerfont = outerFont(dist, paragraphs);
+
+ // No newline if only one paragraph in this lyxtext
+ if (dist > 0) {
+ os << '\n';
+ texrow.newline();
+ }
+
+ /*bool need_par = */ pit->latex(buf, bparams, outerfont,
+ os, texrow, runparams_in);
+
+ return ++pit;
+ }
+
// In an inset with unlimited length (all in one row),
// force layout to default
if (!pit->forceDefaultParagraphs())
bool is_command = style->isCommand();
- if (style->resfont.size() != font.size()
+ if (style->resfont.size() != font.fontInfo().size()
&& boost::next(pit) != paragraphs.end()
&& !is_command) {
if (!need_par)
if (closing_rtl_ltr_environment)
os << "}";
- if (pending_newline && !runparams.verbatim) {
+ if (pending_newline) {
os << '\n';
texrow.newline();
}