Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16999

Code blocks are incorrectly formatted in Atom feed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.3.0
    • Viewing posts

      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

       

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

              Created:
              Updated: