TLF and spaces between styled <span/> and other tags
Hi guys,
I have a thing to ask you that is making me crazy...
I'm working on an application with text editor that uses TLF.
I can apply styles and I can save persistently the text in an external xml file.
When I play with text and styles it's all right.
Problems arrive when I save the <TextFlow/> block in an external file and then reloads it in the application.
(I save text with TextConverter.export() method );
1st way I've tryed:
when I reload text it misses space between styled text and common text:
(myTextFlow.importToFlow( mySavedTextFlow, TextConverter.TEXT_LAYOUT_FORMAT);)
for example when I save this text:
"this is bold and this is normal but this is italic."
I reload and view this:
"this isboldand this is normal but this isitalic."
2nd way I have tryied...
is converting the xml <TextFlow/> block in a string and then assigning it to myTextFlow.tlfMarkup...
If this was the original string:
"this is bold and this is normal but this is italic."
the loaded text appears like:
"this is
bold
and this is normal but this is
italic."
So, I feel a bit down... what I'm going wrong?
Thanks in advance for your help!
