epam / ai-dial-chat

A default UI for AI DIAL
https://chat.lab.epam.com
Apache License 2.0
62 stars 25 forks source link

Spaces and new line are not displayed for prompts in a view mode #1650

Open YauheniyaH opened 3 months ago

YauheniyaH commented 3 months ago

EPAM AI DIAL chat version

0.13.0

How to reproduce

Steps:

  1. create prompt1 with new lines or more that one paragraph
  2. create prompt2 with string containing spaces in the beginning and in the end
  3. share prompt1 and prompt2, and open shared link with another user
  4. publish prompt1 and prompt2, admin approve the prompts' requests
  5. open shared or published prompts in view mode

Actual result

Newline character and spaces in the beginning or end of the string are not displayed in view mode for prompts' content view mode

MicrosoftTeams-image (60)

edit mode

MicrosoftTeams-image (61)

NOTE1 : if duplicate shared or published prompt, then in edit mode content displayed correctly NOTE2 : when input prompt into message using / , then content of prompt is displayed correctly

Expected result

prompt's content should be displayed in view mode the same as in edit mode

Confidential information