[wp-trac] [WordPress Trac] #19855: Too much text in <pre> tag causes no output
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 2 21:50:19 UTC 2012
#19855: Too much text in <pre> tag causes no output
--------------------------+------------------------------
Reporter: helenyhou | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 1.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by azaozz):
Added alternate patch. Thinking we should replace the non-greedy match all
bit in the regex which will remove the backtracking, i.e. we don't want
the
{{{
.*?
}}}
and are better off with
{{{
.*
}}}
To make that possible can split post_content in chunks each containing
only one <pre> tag, then replace `\n` with a placeholder using greedy
regex and put post_content back together.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19855#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list