From fff43b9dee6dc41a19cba34264d93b044c152935 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 20 Nov 2006 04:02:40 +0000 Subject: [PATCH] Don't linebreak after Z. Props andy. fixes #3312 git-svn-id: http://svn.automattic.com/wordpress/trunk@4501 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js index a596b83c4b..ede6576185 100644 --- a/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js +++ b/wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js @@ -575,7 +575,7 @@ function wpautop(pee) { pee = pee.replace(new RegExp('()', 'gi'), "$1\n\n"); pee = pee.replace(new RegExp("\\r\\n|\\r", 'g'), "\n"); pee = pee.replace(new RegExp("\\n\\s*\\n+", 'g'), "\n\n"); - pee = pee.replace(new RegExp('\n*([^\Z]+?)\\n{2}', 'mg'), "

$1

\n"); + pee = pee.replace(new RegExp('([\\s\\S]+?)\\n\\n', 'mg'), "

$1

\n"); pee = pee.replace(new RegExp('

\\s*?

', 'gi'), ''); pee = pee.replace(new RegExp('

\\s*(]*>)\\s*

', 'gi'), "$1"); pee = pee.replace(new RegExp("

(", 'gi'), "$1");