web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Removal of line breaks
Power Automate
Unanswered

Removal of line breaks

(0) ShareShare
ReportReport
Posted on by 20

Hi.

I know this has been asked before and I've tried pretty much everything I can find.

I have converted HTML to text and then replaced most of the line breaks left.

I am left with some double line breaks see below and I just can't replace these, something to do with the character showing as a yellow box is my assumption.

Bryan_L_0-1700162737703.png

My code to replace is:

 

replace(outputs('Compose_-_Format_Email_Text_for_Receipt_Email'),'<br> <br>','<br>')
 
But this just doesn't seem to recognise  the '<br> <br>' 
 
I've tried the replace using %0A %0D variations also as per another replace statement earlier on in the flow.
replace(outputs('Compose_-_Build_Email_Preview'),decodeUriComponent('%0A%0A'), decodeUriComponent('%0A'))
 
Any genius ideas out there?

 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at

    You may want to find out what that yellow rectangle represents.  Was that there before your replacement attempts?

  • Bryan_L Profile Picture
    20 on at

    Thanks.  That's what I am hoping someone might have a view on.

    All I can see is that they are/were spaces.  Nothing more is shown in the html.

  • v-yetonggu-msft Profile Picture
    on at

    Hi @Bryan_L ï¼Œ

    Could you please try to paste and copy this code with a yellow rectangle in the middle and '<br>' on both sides into the 'replace' expression?

    vyetonggumsft_3-1700216778101.png

    I suspect that the yellow rectangle is not equal to space and new line, so neither of your expressions worked.

    If you're still having trouble, please paste and copy the Inputs from the "Format receipt email text" action back to me.

     

    Best Regards,

    Sunshine Gu

     

     

  • Bryan_L Profile Picture
    20 on at

    I solved this by removing the &NBSP; detail from the HTML earlier in the flow.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard