I have following paragraph (replaced non-breakable space with % here for clarity):
NORMAL11111111111111111111111111111111111111111111111111111111111111111111
non%breakable normal2
I iterate TextPortions and can get all the other character properties like weight, posture, color etc.
TextPortions are:
- “NORMAL”
- “1”
- “1111111111111111111111111111111111111111111111111111111111111111111”
- " non breakable normal2"
The line of code print(portion.CharKeepTogether) gives me an error: “AttributeError: CharKeepTogether”.
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 ?