Skip to content

Display line-breaks returned by AI responses#2

Open
elacour wants to merge 1 commit into
bestpractical:mainfrom
Easter-eggs:fix-line-breaks
Open

Display line-breaks returned by AI responses#2
elacour wants to merge 1 commit into
bestpractical:mainfrom
Easter-eggs:fix-line-breaks

Conversation

@elacour

@elacour elacour commented Dec 8, 2025

Copy link
Copy Markdown
  • in the modal form, the div is filled by the AI response which is text with line breaks, hence it's needed to display it as pre-wrap.
  • when user click the "done" button, the editor is filled with the AI response which is still text/plain with line breaks. Editor expects html tags for line breaks.

- in the modal form, the div is filled by the AI response which is text
  with line breaks, hence it's needed to display it as pre-wrap.
- when user click the "done" button, the editor is filled with the AI
  response which is still text/plain with line breaks. Editor expects
  html tags for line breaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant