App: [$4000] Long lines in code blocks should not wrap
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
- Open app
- Send few long lines of code in chat
- name: Decrypt Botify GPG key
run: cd .github/workflows && gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" --output OSBotify-private-key.asc OSBotify-private-key.asc.gpg
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
Expected Result:
Long lines in code blocks should not wrap
Actual Result:
Long lines in code blocks wrap
Workaround:
unknown
Platform:
Where is this issue occurring?
- Web
- Desktop App
Version Number: 1.1.33-3
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL: Issue reported by: @roryabraham Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643397896087709
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 63 (49 by maintainers)
Commits related to this issue
- Long lines in code blocks should not wrap #7497 is fixed — committed to orkunkarakus/Expensify by orkunkarakus 2 years ago
- Long lines in code blocks should not wrap #7497 is fixed — committed to orkunkarakus/Expensify by orkunkarakus 2 years ago
- Long lines in code blocks should not wrap #7497 is fixed — committed to orkunkarakus/Expensify by orkunkarakus 2 years ago
- Merge pull request #8790 from orkunkarakus/fix/7497-LongLinesInCode Long lines in code blocks should not wrap issue (#7497) is fixed — committed to Expensify/App by NikkiWines 2 years ago
- Merge pull request #9026 from orkunkarakus/fix/7497-LongLinesInCode Message list not vertically scrolling while mouse over horizontal scrollable code blocks (#7497) is fixed [Duplicate for vertical s... — committed to Expensify/App by NikkiWines 2 years ago
Ok, considering that the @orkunkarakus mentioned that he fixed the scrolling issue without compromising other features, I am fine with @orkunkarakus 's proposal for the issue.
cc: @NikkiWines
🎀 👀 🎀 C+ reviewed
No worries. Thanks for proposing a solution. I know we have a different process but this is necessary for various reasons. If you want to know about the process, see CONTRIBUTING.md.
old post expired, new post here https://www.upwork.com/jobs/~0166d837401b37414a ; bounty raised to $500
Hi!
Proposal
Create new PreRenderer.js for HTMLRenderers. Inside:
/src/components/HTMLEngineProvider/HTMLRenderers/index.js :
https://user-images.githubusercontent.com/51112870/152656522-bbbcc63f-685a-4e00-b772-946eea641450.mov
Issued payment to @orkunkarakus after email bump.
PR is created. @parasharrajat
cc: @NikkiWines
@mateusbra Are you following the discussion above https://github.com/Expensify/App/issues/7497#issuecomment-1073273718 Do you think your proposal covers that issue?
Thanks for sharing the details @orkunkarakus. I will check it.
PROPOSAL
We must create a new Renderer to deal with
<pre>tags: https://github.com/Expensify/App/blob/6c53be1ea7a022e8a5e788cc7e7efd62c4573474/src/components/HTMLEngineProvider/HTMLRenderers/index.js#L9-L13 add:Create our component PreRenderer.js(I used CodeRenderer.js as a basis for comparison):
Then create our component folder(CodeFence) with index.js:
I’ll also create a index.native.js file to cover the applications natively based on this index.js file.
and codeFencePropTypes.js:
RESULTS
mWeb Chrome:
https://user-images.githubusercontent.com/56851391/163692566-565eb175-c70b-4437-ba22-7abcd44a9c4b.mp4
Web Chrome:
https://user-images.githubusercontent.com/56851391/163692519-91db879a-fb0b-449e-9e2d-91ae79a8f1bf.mov
📣 @parasharrajat You have been assigned to this job by @jboniface! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
Taking over from @rushatgabhane as C+.
@sobitneupane I am interested to hear your proposal.
@NikkiWines sorry, I can’t review this one. I’m not well 🤒