I'm using regular content control for text in word template and have tried to create and set new styles and paragraphs in the word template without any success. Is there somehow possible to insert the text without getting the extra line breaks? Any help is greatly appreciated.
The regular txt file
The output after reading the content from Sharepoint file:
After the flow has created the word file
Best regards
Tinkominko
Hi @grantjenkins ,
Thanks for your reply. Tested out your suggestion and it didn't had the desired outcome. The out come was the same as before, BUT you gave me the clue to test out your idea and by changing your suggestion with this code:
replace(variables('ProductInfoContent'), decodeUriComponent('%0A'),'')
The outcome:
Thanks again and have a great day 🙂
Best regards
Tinkominko
Can you try using the following expression to remove the additional new lines that you are getting.
replace(variables('ProductInfoContent'), decodeUriComponent('%0A%0A'), decodeUriComponent('%0A'))
You would use the output from the expression as input into your Word document.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2