cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yerlasdutco
Helper I
Helper I

Rich Text Editor Line Spacing

Hi Folks!

 

I have a problem with Rich Text Editor. There are very large spacing between lines, when I export it to the PDF File or view.

Any way to decrease this space? Screenshots (In PowerApps Editor, PowerApps preview, PDF File)

 

Yerlasdutco_0-1627470507777.png

Yerlasdutco_1-1627470586447.png

Yerlasdutco_2-1627470646524.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
GarethPrisk
Resident Rockstar
Resident Rockstar

The RichTextEditor outputs HtmlText as a property. If you preview that code, you can see that a carriage return (hitting enter), actually formats the text as separate paragraphs. To have smaller spaces, you'd need to substitute those <p></p> with breaks <br>.

GarethPrisk_0-1627492432461.png

Something like this...you can see the examples above where the right-most controls are HTML, and showing how it ends up formatting both.

Substitute(
    RichTextEditor1.HtmlText,
    "</p><p>",
    "<br>"
)

View solution in original post

3 REPLIES 3
GarethPrisk
Resident Rockstar
Resident Rockstar

The RichTextEditor outputs HtmlText as a property. If you preview that code, you can see that a carriage return (hitting enter), actually formats the text as separate paragraphs. To have smaller spaces, you'd need to substitute those <p></p> with breaks <br>.

GarethPrisk_0-1627492432461.png

Something like this...you can see the examples above where the right-most controls are HTML, and showing how it ends up formatting both.

Substitute(
    RichTextEditor1.HtmlText,
    "</p><p>",
    "<br>"
)

View solution in original post

@GarethPrisk 

 

Thank you for your reply. I have Substitute already. 

Substitute(Substitute( Text11_19.HtmlText, "<li>", "<br>•   "), "</li>", Char(10))

 It pastes new line after bullet. How can I combine it with <p></p>?

This is the exact solution that I need.  But I'm not sure where the code should be placed.  Is this code that is added to the HTML editor, to my patch, or somewhere else?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,235)