Page 1 of 1

Preserve spaces between runs in a CTTextParagraph

PostPosted: Wed Jan 04, 2023 2:15 am
by quimperval
Hello
I'm populating the list of Text runs in a CTTextParagraph, with two runs, each one has a different style, one is bold and other no. Then the first paragraph has an space in the last character. When the document is saved the space of the first run is trimmed, and the words appear side by side, without the space.
I've read that for the word package it is necessary to use the xml:space="preserve" for keeping the spaces as they are set in the text. How can I achieve the same in the presentation package for a paragraph or CTRegularTextRun?
Thanks!

Re: Preserve spaces between runs in a CTTextParagraph

PostPosted: Wed Jan 04, 2023 1:10 pm
by quimperval
I'm so sorry. Please disregard this question, another part in the flow was trimming the spaces. Thanks for your understanding!