Commit dcf7c082 authored by David Narváez's avatar David Narváez

Fix Support for Multiline Labels in LaTeX Exports

Lables are now aligned left and newlines are replaced with TeX double
backlashes for proper rendering.

On behalf of Fabian
CCMAIL: derfakir@web.de

BUG: 341461
FIXED-IN: 14.12.1
parent 78967c0d
......@@ -252,11 +252,15 @@ void PGFExporterImpVisitor::visit( const TextImp* imp )
mstream << "\\node ";
if (imp->hasFrame())
{
mstream << "[rectangle,draw] ";
mstream << "[rectangle,draw,align=left] ";
}
else
{
mstream << "[align=left] ";
}
mstream << "at "
<< emitCoord(imp->coordinate())
<< " {" << imp->text() << "}";
<< " {" << imp->text().replace(QString("\n"),QString("\\\\")) << "}";
newLine();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment