Skip to:
Content

bbPress.org

Changeset 5086


Ignore:
Timestamp:
08/24/2013 01:39:11 PM (8 years ago)
Author:
johnjamesjacoby
Message:

When converting backticks to pre and code blocks, wrap pre's in new lines. Fixes inconsistent output between: the original posted content, formatted output, and editing content. See #2091.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/formatting.php

    r4995 r5086  
    206206    // Wrap blocks in pre tags
    207207    if ( "`" !== $matches[1] ) {
    208         $content = '<pre>' . $content . '</pre>';
     208        $content = "\n<pre>" . $content . "</pre>\n";
    209209    }
    210210
Note: See TracChangeset for help on using the changeset viewer.