You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Android - Room - Bold+code block markdown pasted in room description is displayed with space above #57229
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: V9.1.3-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both Issue reported by: Applause Internal Team Device used: Redmi note 10s android 13 App Component: Other
Action Performed:
Launch app in both mweb and android
Tap fab- room
Enter all the details and paste room description as - ********1223333************
Create room
Tap header
Note room description
Expected Result:
Bold+code block markdown pasted in room description must be displayed without space above.
Actual Result:
Bold+code block markdown pasted in room description is displayed with space above in android but not in mweb.
changed the title [-]Room - Markdown pasted is inconsistently displayed in mWeb and Android[/-][+]Android - Room - Bold+code block markdown pasted in room description is displayed with space above[/+]on Feb 21, 2025
changed the title [-]Android - Room - Bold+code block markdown pasted in room description is displayed with space above[/-][+][$250] Android - Room - Bold+code block markdown pasted in room description is displayed with space above[/+]on Feb 25, 2025
convertToLTR was introduced by #17659 PR to resolve this issue.
Could you please go through the test steps in the PR or the issue and post results here to make sure it doesn't result any regression? (At the moment, I am having some issue while trying to build Android app).
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Feb 21, 2025
Triggered auto assignment to @CortneyOfstad (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.[-]Room - Markdown pasted is inconsistently displayed in mWeb and Android[/-][+]Android - Room - Bold+code block markdown pasted in room description is displayed with space above[/+]bernhardoj commentedon Feb 21, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The room description has extra space above.
What is the root cause of that problem?
I can't tell exactly why, but it happens because we are pretending an LTR unicode here to the HTML.
App/src/components/MenuItem.tsx
Lines 532 to 534 in 97552e6
If it's prepended before an HTML tag, the issue happens. In our case, the HTML looks like:
The LTR unicode was added to force the text to be LTR.
What changes do you think we should make in order to solve the problem?
We can remove the convertToLTR from the HTML content
App/src/components/MenuItem.tsx
Lines 530 to 546 in 97552e6
because we already do it on every text.
App/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx
Lines 139 to 142 in 97552e6
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
melvin-bot commentedon Feb 24, 2025
@CortneyOfstad Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
[-]Android - Room - Bold+code block markdown pasted in room description is displayed with space above[/-][+][$250] Android - Room - Bold+code block markdown pasted in room description is displayed with space above[/+]melvin-bot commentedon Feb 25, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021894474220438538083
melvin-bot commentedon Feb 25, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)CortneyOfstad commentedon Feb 25, 2025
Hey @sobitneupane! We have a proposal here for review, when you have a chance. Thanks!
sobitneupane commentedon Feb 28, 2025
Thanks for the propsoal, @bernhardoj
convertToLTRwas introduced by #17659 PR to resolve this issue.Could you please go through the test steps in the PR or the issue and post results here to make sure it doesn't result any regression? (At the moment, I am having some issue while trying to build Android app).
bernhardoj commentedon Mar 1, 2025
MenuItem can render the text as plain text or HTML.
For the plain text, nothing has changed.
App/src/components/MenuItem.tsx
Lines 560 to 573 in ec99650
App/src/components/MenuItem.tsx
Lines 784 to 792 in ec99650
My proposal suggests removing the convertToLTR for HTML only since we already do it on every text content.
App/src/components/MenuItem.tsx
Lines 530 to 546 in ec99650
App/src/components/MenuItem.tsx
Lines 779 to 783 in ec99650
App/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx
Lines 139 to 142 in 97552e6
asdad.mp4
sobitneupane commentedon Mar 3, 2025
@bernhardoj
Are you still able to reproduce the issue? I was unable to reproduce it on my end.
Could you please share details about the device/simulator you used to reproduce the issue?
bernhardoj commentedon Mar 4, 2025
I can't repro anymore too after #56924
melvin-bot commentedon Mar 4, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
CortneyOfstad commentedon Mar 4, 2025
Going to close since this cannot be consistently reproduced. Thanks!