The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Based on the information you provided, I understand that you have built a project reporting dashboard using Microsoft Lists that is accessed both via Microsoft Edge and embedded within a Microsoft Teams channel. Recently, the Teams channel view stopped rendering standard HTML markup properly within a multi-line Rich Text field. This causes your project updates to run together into a single dense wall of text without paragraph breaks, even though the exact same list still displays perfectly fine with proper line spacing when viewed directly in a web browser.
After looking into this behavior, when a SharePoint List is embedded as a tab inside Teams, it does not run on the exact same full browser rendering engine. Instead, Teams processes the list through a specialized iframe framework that applies stricter HTML sanitization, security filtering, and Markdown-focused rendering policies. A recent backend update to this Teams component has likely caused it to strip out or ignore standard paragraph (<p>) or div-based spacing markup that standard browsers natively support.
Since manually updating nearly 200 projects with inline <margin-bottom> CSS fixes is a massive, unsustainable body of work, here are the most effective structural solutions to get the Teams and browser views matching again:
Teams' restricted renderer often ignores structural block-level elements like paragraph tags but will consistently respect basic line-break tags like <br> or <br />.
Rather than editing 200 items manually, you can create a simple, one-time Power Automate cloud flow to convert your existing spacing. Set the flow to loop through all 200 items in your Microsoft List, use a string replacement expression to automatically swap out the unsupported paragraph/spacing tags with standard <br><br> tags, and update the items. This ensures text line breaks look identical and professional across both Microsoft Edge and the Teams tab interface.
If your dashboard utilizes custom list layouts, I recommend handling structural UI designs using JSON Column or View Formatting rather than relying on inline HTML inside Rich Text fields.
You can inject a clean JSON layout configuration directly into your multi-line text column settings. By using the txtContent and style blocks within SharePoint JSON formatting, you can force Teams to apply the correct layout wrappers and padding. JSON definitions are natively interpreted by the SharePoint Framework (SPFx) layer that Teams uses, allowing you to bypass the web-browser-specific HTML parsing filters entirely.
Note: Because Microsoft Teams constantly rolls out UI updates, I highly recommend creating a duplicate "Test List" with 1 or 2 sample projects first to test both the <br> tags and the JSON formatting inside your Teams tab before running any automated updates across your active production data.
I hope this information help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.