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
Suggested Answer

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

(0) ShareShare
ReportReport
Posted on by
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)
  • WarrenBelz Profile Picture
    155,052 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) ?
     
  • Suggested answer
    Power Platform Guy Profile Picture
    94 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard