Forum Discussion

__arik__'s avatar
__arik__
Copper Contributor
Jan 03, 2022

TextBlock space trimming

Hi,

 

Is there a way to disable space trimming.

For example:
The text block:
{ "type": "TextBlock", "text": "Text with        many        spaces    ", "size": "large" }

 

Will appear as ""Text with many spaces"

 

I would like to preserve the original text.

Is this possible?

  • __arik__ - Using   and &emsp should give single space and tab space respectively. But it is not rendering properly and not adding spaces. We have a bug raised for it already. We will update you on the same.

     

    Thanks,

    Meghana

    --------------------------------------------------------------------------------------------------------------------

    If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    • Meghana-MSFT's avatar
      Meghana-MSFT
      Icon for Microsoft rankMicrosoft
      We got an update from the engineering team saying, Teams don't support any free html content by design, so " " rendering as plain text is expected.

Resources