Layer7 API Management

 View Only
  • 1.  Dev Portal 3.5 removes new lines from HTML

    Posted Apr 20, 2018 06:45 AM

    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?



  • 2.  Re: Dev Portal 3.5 removes new lines from HTML
    Best Answer

    Broadcom Employee
    Posted Dec 17, 2018 02:36 PM

    Good morning,

     

    We have validated with our development team and this was corrected in CR8 for Portal 3.5 so please apply this version or higher.

     

    Sincerely,

     

    Stephen Hughes

    Broadcom Support