Loosign the indent when replacing texts

I contacted you earlier regarding the looping through shapes, thanks for the help back then. Have faced another problem and that is that I “loose” the indent after replacing the text. See the ruler in the attached file where you see the situation before the replace and after the replace. How can I get around this?

Hi Bo Ander,

I have observed the snapshot shared by you. I would recommend you to please try replacing text on portion level so as to preserve the text property. If the issue still prevails for you then please share the source presentation along with a working project code that can be used to reproduce the issue on our end to help you out further.

Thanks and Regards,