Opened 12 years ago

Closed 12 years ago

#669 closed Bug (duplicate)

Newlines in <pre> tags are not preserved

Reported by: tomdavies@… Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Cc:

Description

the FCKXHtml.GetXHTML method returns XHTML stripped of newlines. This means that text in <pre> tags loses its intended formatting.

This can be fixed by changing the code below by commenting out the call to replaceNewLineChars().:

Text Node. case 3 : this._AppendTextNode( xmlNode, htmlNode.nodeValue/*.replaceNewLineChars(' ')*/ ) ; break ;

I'm not certain whether this has any other unintended consequences.


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1252313&group_id=75348&atid=543653

Change History (2)

comment:1 Changed 12 years ago by Martin Kou

Reporter: changed from Martin Kou to tomdavies@…

comment:2 Changed 12 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: newclosed

DUP of #328.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy