#include "MetricsInfo.h"
#include "OutputParams.h"
#include "output_xhtml.h"
+#include "texstream.h"
#include "frontends/Application.h"
#include "frontends/FontMetrics.h"
}
-void InsetSeparator::latex(otexstream & os, OutputParams const &) const
+void InsetSeparator::latex(otexstream & os, OutputParams const & runparams) const
{
// Do nothing if a paragraph break was just output
if (!os.afterParbreak()) {
break;
case InsetSeparatorParams::PARBREAK:
case InsetSeparatorParams::LATEXPAR:
- os << breakln << "\n";
+ if (runparams.inDeletedInset)
+ os << breakln << "}\n\n{";
+ else
+ os << breakln << "\n";
break;
default:
os << breakln << "%\n";
pi.pain.lines(xp, yp, 2, ColorName());
if (params_.kind == InsetSeparatorParams::PARBREAK) {
- yp[0] += 0.25 * asc * 0.75;
+ yp[0] += int(0.25 * asc * 0.75);
yp[1] = yp[0];
pi.pain.lines(xp, yp, 2, ColorName());
}