CVS commit by johnflux: Add a header saying the encoding to the pasted text. Hopefully this will fix the problem a few people are having with the encoding of the text. M +14 -2 dom2_rangeimpl.cpp 1.37 --- kdelibs/khtml/xml/dom2_rangeimpl.cpp #1.36:1.37 @@ -1030,6 +1030,18 @@ DOMString RangeImpl::toHTML( int &except - if(!hasBodyTag) text = DOMString("") + text + ""; - else if(!hasHtmlTag) text = DOMString("") + text + ""; + if(!hasBodyTag) text = DOMString("") + text + ""; + else if(!hasHtmlTag) { + text = DOMString("\n" + "\n" + "\n" + "\n" + "\n") + + text + + ""; + } + text = DOMString("\n") + text; + + + return text;