AnsweredAssumed Answered

Dev Portal 3.5 removes new lines from HTML <pre>

Question asked by rskokan on Apr 20, 2018

I put the following text in a section on a General page using the portal's editor in its Source mode:

 

<pre>
{
  "pageNumber": 1,
  "pageCount": 12,
  "nextPage": 2,
  "pageSize": 25,
  "totalCount": 298,
  "page": [
     {
      ...item...
     },
     {
      ...item...
     },
     {
      ...item...
     }
  ]
}
</pre>

Then, when I open the page again in the editor and switch to its Source mode, the line breaks are missing too:

<pre> { "pageNumber": 1, "pageCount": 12, "nextPage": 2, "pageSize": 25, "totalCount": 298, "page": [ { ...item... }, { ...item... }, { ...item... } ]}</pre>

What should I do to write a code sample that the portal will not touch?

Outcomes