| Summary: | libvisio: carriage return in text box is transformed into space | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Bruno Girin <brunogirin> |
| Component: | Draw | Assignee: | Fridrich Strba <fridrich.strba> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | Master old -3.6 | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Bruno Girin
2012-01-08 06:12:18 UTC
This one is actually more complicated then it sounds :) The libwpg's API that libvisio shares was designed with SVG as target in its mind primarily. There, the text formating is very limited, and it was designed for text that does not wrap and stays on one line. With the Visio file-format, we extended this until the point where we could without breaking the ABI/API. The proper way would be to send tabs, line-breaks and similar elements not as a part of the text stream, but as separate elements. I started to rewrite the libwpg's API (in libwpg git master) to allow the text boxes inside graphic document with the same rich formating as in writer text boxes. This will be in libwpg 0.3.x and in libvisio 0.1.x. Only not sure when that will be. This one is fixed in LibreOffice 4.0 |