Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16999

Code blocks are incorrectly formatted in Atom feed

    XMLWordPrintable

Details

    Description

      When a [code][/code] block is represented in an Atom feed, the lines are run-together as one single line, i.e. line breaks within the code block are discarded.  Here is an example:

      <div class="codebox"><p>CODE: </p><pre><code> TIME = 0 FOR I% = 1 TO 10000000 a = PI NEXT PRINT TIME TIME = 0 FOR I% = 1 TO 10000000 LET a = PI NEXT PRINT TIME</code></pre></div>
      

      The original post looked like this:

       TIME = 0
       FOR I% = 1 TO 10000000
         a = PI
       NEXT
       PRINT TIME
       TIME = 0
       FOR I% = 1 TO 10000000
         LET a = PI
       NEXT
       PRINT TIME

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            RichardRussell RichardRussell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: