Skip to content
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

Pasting fix from 2.0.6 causes whitespace to be lost #1816

Open
GhimBoon opened this issue Jan 28, 2025 · 0 comments
Open

Pasting fix from 2.0.6 causes whitespace to be lost #1816

GhimBoon opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working needs-triage

Comments

@GhimBoon
Copy link
Contributor

GhimBoon commented Jan 28, 2025

Describe the bug
Whitespace like tabs/CRLF (which is important for some programming languages e.g. Python) is lost when pasting

To Reproduce
Steps to reproduce the behavior:

  1. Copy code from Python IDE or any other text with proper spacings
  2. Paste on Chainlit 2.0.6 or later
  3. Spacing is lost

Expected behavior
Spacing should be maintained when passed to LLM

Screenshots

Image

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Opera, Firefox etc

Additional context
N/A

@GhimBoon GhimBoon changed the title Pasting fix from 2.0.6 causes spacing to be lost Pasting fix from 2.0.6 causes spacing/formatting to be lost Jan 28, 2025
@GhimBoon GhimBoon changed the title Pasting fix from 2.0.6 causes spacing/formatting to be lost Pasting fix from 2.0.6 causes whitespace to be lost Jan 28, 2025
@dosubot dosubot bot added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant