cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
soooofunny
Helper II
Helper II

When using "HTML to Text", line breaks and spaces become abnormal.

Hi, Guys.

When using "HTML to Text", line breaks and spaces become abnormal.
Mail is sent in the following format.
(I can not show the real mail. Please forgive me.)

blah-blah-blah 
blah-blah-blah 
blah-blah-blah

2019/06/11 18:57:30 System_error_5_occurred 
525866,AABBCCDDEEFFGGHH

2019/07/19 21:49:13 System_error_5_occurred 
535896,OOKKOOOONJJJOOOO

2019/08/25 13:38:34 System_error_5_occurred 
596322,PPKKOKKKKKKMNJJK

2020/01/01 13:30:27 System_error_5_occurred 
574147,OOKKAAAAAAAAAAAA

blah-blah-blah 
blah-blah-blah 
blah-blah-blah

If you do conversion, the space will disappear or you may end up with unusual newlines at unwanted locations.

 

blah-blah-blah blah-blah-blah blah-blah-blah 2019/06/11 18:57:30
System_error_5_occurred 525866,AABBCCDDEEFFGGHH2019/07/19 21:49:13
System_error_5_occurred 535896,OOKKOOOONJJJOOOO2019/08/25 13:38:34
System_error_5_occurred 596322,PPKKOKKKKKKMNJJK2020/01/01 13:30:27
System_error_5_occurred 574147,OOKKAAAAAAAAAAAAblah-blah-blah 
blah-blah-blah blah-blah-blah

I want to keep my shape even after conversion if I can do it.
Since I am getting the number of characters, I am troubled because it causes an error if it changes.
I can use it repeatedly as a "date", "error code", "ID" and "content" records.

For example ...

2019/06/11 18:57:30 System_error_5_occurred 525866,AABBCCDDEEFFGGHH

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @soooofunny ,

 

I am not aware of that. 

 

Also see this link

 

https://powerusers.microsoft.com/t5/Flow-Ideas/Convert-html-to-text-while-preserving-line-breaks/idi...

 

It might be helpful.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

5 REPLIES 5
abm
Super User
Super User

Hi @soooofunny ,

 

For me it did worked correctly after the HTML to text conversion. Didn't added any unwanted lines.

 

Please see below.

 

e12.png

 

Check the original text whether it has carriage returns after every text?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Hi, @abm .

 

Thank you for your reply.

Carriage returns are the same for all records.

Apparently, when the letter comes to the right end of the form, it will be broken automatically.

 

Is there such a thing?

Thanks.

Hi @soooofunny ,

 

I am not aware of that. 

 

Also see this link

 

https://powerusers.microsoft.com/t5/Flow-Ideas/Convert-html-to-text-while-preserving-line-breaks/idi...

 

It might be helpful.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

v-yamao-msft
Community Support
Community Support

Hi @soooofunny ,

 

It is a default behavior that when using the action “Html to text”, all the line breaks and format will be removed.

 

Please feel free vote the idea @abm suggested.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, @v-yamao-msft  @abm 

 

Thank you for your helpful information.

This was a specification...

 

It is a little disappointing specification. I hope to be fixed someday.

This is my solution.

I wanted to put the date on a new line, so I replaced the text in the email.

 

It's very simple, but it's the format you'd like to add an HTML line break (<br>) before the date and convert it with HTML to Text.

 

Thanks.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,015)