-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$250] Markdown - Space in the Code Block is removed after Manually copying and pasting #43331
Comments
Triggered auto assignment to @MitchExpensify ( |
@MitchExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
@lanitochka17 : this is related to #39971 |
@kpadmanabhan Are you sure this is related to #39971 ? I have tested again after applied the solution from the PR #42892 and it doesn't solve the current issue, can you please link between this issue and other one how they are related ? |
Not overdue, ball is in @kpadmanabhan 's court |
@MitchExpensify / @jayeshmangwani : sorry for late response. On it now. In main HEAD, copying using Recording.2024-06-14.011634.mp4The fix for #39971 will not solve this issue. The text is already trimmed while copying to clipboard. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pasted code block trimming trailing newline characters. What is the root cause of that problem?Two concerns from the initially reported problem.
What changes do you think we should make in order to solve the problem?Check if this is a code block or is text having trailing newline, then calculate range accordingly with offset.
This makes sure that the correctly selected code block is pasted in full and send button is enabled. Recording.2024-06-14.132257.mp4Recording.2024-06-14.133756.mp4What alternative solutions did you explore? (Optional)N.A. |
@MitchExpensify / @jayeshmangwani / @lanitochka17 : if you think this solves the issue reported, please mark this bug external and kindly assign. |
@MitchExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~014e40385be5828d12 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
You need to change the field to text area field and onPaste we need to handle the code. Code on handle paste: Code is just a sample |
📣 @msuleman526! 📣
|
Contributor Details: |
@eVoloshchak which proposal should we go with? |
@MitchExpensify, we might want to put this on hold for #39971, which in turn is held for #42216. Both already have PR's open, this issue might be resolved after applying both |
@eVoloshchak I think Space in the code block will not be resolved in this PR #39971. I'm not sure if this issue #42216 solve the current issue, but in my opinion, both have different RCAs |
Triggered auto assignment to @adelekennedy ( |
@kpadmanabhan taking this over from Mitch - it sounds like from your last comment that this issue isn't reproducible but you're running into a similar issue? |
@adelekennedy that's partially correct. Newlines in code block were trimmed off which is not the expected behaviour. However I will test again on main HEAD and confirm as myself, @jayeshmangwani , @eVoloshchak and @MitchExpensify were seeing different behaviours. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@eVoloshchak, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@eVoloshchak what are the next steps here? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
In latest Also pasting of text from "Copy to clipboard" context menu is ending up placing the cursor at end of code block. @adelekennedy : the core issue seems to be fixed. however there are regressions w.r.t copying using mouse / trackpad click and drag. if you do nmot click and drag till outside of the message (not just till outside code block), then this works fine in Please let me know if you need further details. |
@eVoloshchak, @adelekennedy Huh... This is 4 days overdue. Who can take care of this? |
@eVoloshchak / @adelekennedy : shall i pick this up for fixing? key problem here is the selection of text from code block. please suggest if i may proceed with the fix. |
@eVoloshchak 👀 above plz |
@eVoloshchak, @adelekennedy 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
I'm not sure if this is worth fixing, it's not a bug with the app itself, but rather the way OS handles text selection. Screen.Recording.2024-08-01.at.18.42.32.mov@mallenexpensify, @adelekennedy, what are your thoughts? |
I'd move to close it in that case, it's low priority any way |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.80-16
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4606901
Email or phone of affected tester (no customers): dave0123seife+admin@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The correct markdown format is pasted
Actual Result:
The markdown format removes the line space
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6505942_1717827443315.CodeBloke_Copy.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @eVoloshchakThe text was updated successfully, but these errors were encountered: