Hi,
If I load the attached document into the Ribbon UI sample program there are a series of spaces surrounding some text about halfway down the document. Those spaces are being removed automagically when we don't want them to be.
Thanks,
Troy
Spaces are being removed from a document on opening in RichEdit
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
- v14.2.11Download Official Update
I'm fine with making it public, does the fix affect tabs? We just want to make sure those are being preserved properly as well.
Thanks,
Troy
After applying the hotfix above, the attached document no longer displays. I have been able to reproduce it in the Ribbon UI sample so it isn't specific to our code. We urgently need this to be resolved so we can finish our release on time.
Thanks,
Troy
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T297310: The RichEdit control opens a specific document as empty. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Hello,
I have reproduced the behavior and passed this ticket to our developers for further research. Please bear with us.
We will notify you as soon as we make any progress.
Hi Yulia,
Thanks for the update. If you could let me know as soon as possible under what conditions it occurs (we have seen some cases where they aren't removed) and if it will require a hotfix (I am assuming that is the case right now) that would be helpful.
Thanks,
Troy
Hello Troy,
The issue is related to the internal logic of the RichEdit control. If the document doesn't contain the xml:space="preserve" attribute, the control must remove spaces on text bounds, but currently the control also removes spaces in the text. We are working on this issue and will notify you when the status of this ticket is changed.
Sorry Andrey, used to Yulia answering most of my issues :)
Everything is OK Troy :)
Would you mind if I mark this ticket public so that other customers who may experience the same issue can get the hotfix? I can remove your file from your initial question so it will not be available for other customers.
Hi Andrey,
Yeah, you can make it public. As for the fix, does it affect things like Tabs? Just want to make sure those are being preserved as well.
Thanks,
Troy
Hello Troy,
Thank you. I have removed your private file and marked this ticket public.
As for your question, I don't see any problem with the Tab symbols even without the hotfix. Would you please describe steps that I need to perform to reproduce the issue?
Hi Andrey,
I didn't see a problem, just verifying that they would be treated the same even after the fix. My understanding is that the attribute affects all whitespace yet the bug only applied to spaces from what we could see so just wanted to double check.
Hello Troy,
Thank you for the clarification. This issue was related only to 'space' characters and does not affect other characters.
The hotfix fixes the issue with the 'space' characters.