﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12591	Preserve whitespace in HTML nodes	Boris Lykah		"If we call setData with HTML like

{{{
<p>       abc       def      </p>
}}}

It will be transformed into the following structure after fromHtml call

{{{
<p>abc def </p>
}}}

It would be good to have an option to preserve whitespaces on a certain condition. CKEditor DTD or filter settings seem to be good candidates for keeping this option.

The whitespace trimming logics is situated in parser.onText in htmlparser/fragment.js:

{{{
if ( ( !currentNode._.hasInlineStarted || pendingBRs.length ) && !inPre && !inTextarea ) {
  text = CKEDITOR.tools.ltrim( text );
...
if ( !inPre && !inTextarea )
  text = text.replace( /[\t\r\n ]{2,}|[\t\r\n]/g, ' ' );
}}}"	New Feature	closed	Normal		Core : Parser		invalid		
