In the "EventHtmlRenderer.kt" file under the "removeLeadingNewlineForInlineElement" function we have added an expression that removes extra line spaces from normal text as well. The solution under the function focuses only on the formatted text lines. After making changes to the same function, we were able to resolve for the normal text lines as well.
Type of change
Content
In the "EventHtmlRenderer.kt" file under the "removeLeadingNewlineForInlineElement" function we have added an expression that removes extra line spaces from normal text as well. The solution under the function focuses only on the formatted text lines. After making changes to the same function, we were able to resolve for the normal text lines as well.
Motivation and context
[(https://github.com/element-hq/element-android/issues/8764#issue-2144036397)]
Screenshots / GIFs
Tests
Tested devices
Checklist