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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Extra blank paragraphs...
Power Apps
Answered

Extra blank paragraphs & line breaks added in RTE fields - Custom PowerApps form (SharePoint List)

(1) ShareShare
ReportReport
Posted on by 2
Hi everyone,

I'm hoping someone can help me with a frustrating rich-text issue in a customized Power Apps form.

Problem:
I have a SharePoint list with several rich-text columns (e.g., "Job Location", "Additional Job Description", etc.). I’m using the standard customized form created via Integrate → Power Apps → Customize forms.
 
Whenever the form loads an existing item for editing (or during a "Needs Revision" workflow), the rich-text fields consistently get extra blank paragraphs and line breaks added at the top and/or bottom of the content. These extra lines are then saved back to SharePoint and appear in the PDFs generated by my Power Automate flows.
 
Important notes:
  • Users are not manually adding these breaks.
  • When I temporarily switch back to the default SharePoint form (or Edit in Grid View), the issue disappears.
  • The problem only occurs with the customized Power Apps form.
 
What I’ve already tried:
  • Setting the Default property of the Rich Text Editor controls with aggressive cleaning using Substitute, Trim, and <div></div> fallback.
  • Adding cleaning logic in the screen’s OnVisible event using UpdateContext.
  • Modifying the Update property on the DataCards.
  • Using the official Rich Text Editor control.
 
Despite all of the above, the extra spacing still appears when the form loads for editing.
 
Goal:
I want the rich-text content to load cleanly (without extra blank paragraphs/line breaks) when the form opens for editing, and I want the data saved to SharePoint to be clean.
Has anyone encountered this before? Is there a reliable way to prevent SharePoint/Power Apps from injecting these ghost paragraphs in customized forms?
 
Any suggestions or known workarounds would be greatly appreciated!

Thanks in advance,
David
customformview-itemedit.png
gridview-itemedit.png
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    This is a bit unusual, so getting down to the issue: -
    • Does the cleaning in the Update of the data card fix the SharePoint saving issue (this is an important first step).
    • Does "clean" SharePoint Point data ​​​​​​load correctly ?
    • What does the data look like in a plain text label (what has been added) ?
     
  • Verified answer
    Power Platform Guy Profile Picture
    220 on at
     
    Instead of finding the solution in the Edit Mode of the Control We will focus on the DataCard Update property while saving the record in the database.
     
    Power Fx (Formula)
     
    With(
        {
            _html: RichTextEditor1.HtmlText
        },
        Substitute(
            Substitute(
                _html,
                "<p><br></p>",
                ""
            ),
            "<p>&nbsp;</p>",
            ""
        )
    )
     
    Provide this formula in the relevant datacard update property, this will remove the blank paragraph.
     
    ☑️Accept as Solution to help others 💙 A Like is appreciated ❓Tag @PowerPlatform Guy for any queries
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn   
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    You cannot fully stop Power Apps from generating these ghost paragraphs at load time.
     
    The only reliable fix is:
    • sanitize at the point of save and/or before downstream processing (Power Automate).
  • Power Platform Guy Profile Picture
    220 on at
     
    A quick follow-up to see, does the suggestion worked for you or still you were looking for any other approaches or assistance.
     
    ☑️Accept as Solution to help others 💙 A Like is appreciated ❓Tag @PowerPlatform Guy for any queries

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard