Problem: The client reported an issue where spaces at the beginning and end of text elements in UXBuilder were being removed after translation with WPML. This was observed in both UXBlocks and Pages using UXBuilder, affecting the layout and spacing as intended by the client. Solution: We clarified that the removal of spaces is not specifically related to WPML but is a behavior of WordPress itself. When content is saved or updated using the Gutenberg editor, WordPress automatically removes any leading or trailing spaces in text modules. We recommended testing this behavior on a sandbox site with WPML deactivated to confirm that it occurs even without WPML active. If you're experiencing this issue, we recommend checking this behavior in your setup.
Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket at WPML support forum for further assistance.