Preserving newline characters in text from web service | XM Community
Question

Preserving newline characters in text from web service

  • 14 July 2023
  • 0 replies
  • 12 views

Userlevel 3
Badge +10
  • Level 3 ●●●
  • 35 replies

I have an old experiment that grabs text using a web service, and then pipes it in to some questions. My text has carriage returns and newlines in it. Inspecting the raw data transmitted by the web service, it looks correctly formatted, e.g.

 

“Note that in this experiment, white, grey, and black are considered “colors”.\r\n\r\nYou will also be able to provide more information to us”

 

This worked for a long time, but sometime in the past couple years something changed and now the \r and \n are no longer being respected: I just get one block of text. I know that this worked before because I have screenshots that show everything correctly formatted. 

 

Did Qualtrics change the way it parsed this? Or did something else change? I feel like I noticed recently that copy/pasting text with newlines into the basic Qualtrics question editor no longer respects them (I now need to open the rich content editor in order to preserve them). I’m wondering if this change is linked?


0 replies

Be the first to reply!

Leave a Reply