CKEditor allows the HTML it generates to be formatted rather than just validated. When the option to insert a new line after opening tags or before closing tags is enabled, the regex in Pagination->retag fails due to the inserted white space.

Forgive the lack of a patch; we're working with Mercurial here and I frankly haven't figured out how to get a patch for one file instead of the whole repository yet.

The regex in the module, around line 452:
var $re_tag = '/(<p>\s*)?<h3>(.*?)<\/h3>(\s*<\/p>)?/mi';
should be:
var $re_tag = '/(<p>\s*)?<h3>\s*(.*?)\s*<\/h3>(\s*<\/p>)?/mi';

CommentFileSizeAuthor
#1 newhope_1964_f232e3d65867.patch724 bytesPrometheus6

Comments

Prometheus6’s picture

StatusFileSize
new724 bytes

Okay, this is the patch Mercurial generated.

mundanity’s picture

Status: Active » Patch (to be ported)

Ah great, thanks for that, I'll update dev likely this weekend.

mundanity’s picture

Version: 6.x-1.6 » 6.x-1.x-dev
Status: Patch (to be ported) » Fixed

Updated in dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.