[Solved] How to detect non-breakable space in TextPortion
Posted: Sat Dec 09, 2017 6:18 pm
I have following paragraph (replaced non-breakable space with % here for clarity):
TextPortions are:
And indeed, when I inspect all the properties of the portion with unohelper.inspect(portion, sys.stdout) (it prints out all I can get through the object), there is no CharKeepTogether in the list.
I've tried this with LibreOffice 5.3.0 and 5.4.2.2
Any ideas ?
I iterate TextPortions in Python UNO and can get all the other character properties like weight, posture, color etc.NORMAL11111111111111111111111111111111111111111111111111111111111111111111
non%breakable normal2
TextPortions are:
- "NORMAL"
- "1"
- "1111111111111111111111111111111111111111111111111111111111111111111"
- " non breakable normal2"
And indeed, when I inspect all the properties of the portion with unohelper.inspect(portion, sys.stdout) (it prints out all I can get through the object), there is no CharKeepTogether in the list.
I've tried this with LibreOffice 5.3.0 and 5.4.2.2
Any ideas ?