Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hello,

On 02/01/14 16:04, John Robson wrote:
Thank you, but not solve, the lines continue large.
But, this is not a bug, is just a good feature.
As I said before, break lines in smaller columns will improve the
versioning results when you work in a collaborative way.

The Flat ODF filter uses DocumentHandlerAdapter from
sax/tools/documenthandleradapter.hxx
What you need basically is to modify somehow the characters method so
that it iterates through the aChars and spit a serie of calls of
m_handler->characters split at the word boundaries. Something like
iterating through the string and keep the position of the last
white-space and if you are over the position 80 pass a sub-string until
the last white-space found before the position 80. And do that until the
string is passed completely.

Not sure what kind of performance penalty would this create. But one
could do that only if pretty printing is selected.

Hope the pointers are good enough

F.

-- 
Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Attachment: signature.asc
Description: OpenPGP digital signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.