Multiple newlines in textbox give invalid latex on pdf/latex export
Bug #1081603 reported by
Frederik TIlmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
When exporting to pdf/latex and there is a text box with a double newline (i.e. an empty line), then the resulting latex file does not compile.
Example textbox content
"some text
some more text"
The reason is that each newline generates a "\\" command, and in the minipage context a repeated newline " some text \\ \\ some more text"
Instead of "\\ \\" the double newline should be converted to
"\\[\baselinskip] " or
"\\ \hspace*{0cm} \\"
which both give the desired empty line.
As the workaround is easy, not a big deal, but should also be fairly easy to fix.
This is linked to bug #771959, but not the same