Why are newlines not shown in work notes?

peterraeves
Mega Guru

When newlines are entered through the import set api, they do not show on the incident. Any idea why?

Image 2.png

Image 3.png

1 ACCEPTED SOLUTION

peterraeves
Mega Guru

It seems the reason was the '[code]' tags. I automatically add those tags for incoming work notes, as we can never know what the customers send to us. In case they send html, it would be rendered correctly. But it seems, now it is messing with the basic newlines...



We have to think about how to solve this, but at least we know the reason now . Code tags remove the basic new line characters...


View solution in original post

5 REPLIES 5

SNOW User8
Giga Guru

Hi Peter Raeves



Make sure that UI properties "Allow support for embedding HTML code by using the [code] tag." &   "Allow embedded HTML (using [code] tags) to contain Javascript tags" is enabled in your instance.


That's not it


Image 4.png



Image 5.png


Please add this in your worknote & check


[code] test 1 <br/> test 1 [/code]


Yes, I know how to get the newlines in the worknotes by using breaks. That's not the question. The value you see above, is what we receive from customers. So, the question is, why the newlines that are clearly in the input from the import set are not shown in the work notes?