How to detect non-breakable space when iterating document via UNO [closed]
I have following paragraph (replaced non-breakable space with %
here for clarity):
NORMAL11111111111111111111111111111111111111111111111111111111111111111111
non%breakable normal2
I iterate TextPortion
s and can get all the other character properties like weight, posture, color etc.
TextPortion
s 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 ?
See also: https://forum.openoffice.org/en/forum...
@Alexander Malahov: Good question, although it took me awhile to understand that this was cross-posted to another site. A simple statement like "I also asked this at ..." would help.
I was not the questioner there. Should have added the hint "Cross-posting:" instead of "See also:". Sorry!