summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/qt/PasteboardQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/qt/PasteboardQt.cpp')
-rw-r--r--WebCore/platform/qt/PasteboardQt.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/WebCore/platform/qt/PasteboardQt.cpp b/WebCore/platform/qt/PasteboardQt.cpp
index e1e6d84..fc53124 100644
--- a/WebCore/platform/qt/PasteboardQt.cpp
+++ b/WebCore/platform/qt/PasteboardQt.cpp
@@ -65,10 +65,7 @@ void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete,
text.replace(QChar(0xa0), QLatin1Char(' '));
md->setText(text);
- QString html = QLatin1String("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /></head><body>");
- html += createMarkup(selectedRange, 0, AnnotateForInterchange, false, AbsoluteURLs);
- html += QLatin1String("</body></html>");
- md->setHtml(html);
+ md->setHtml(createMarkup(selectedRange, 0, AnnotateForInterchange, false, AbsoluteURLs));
#ifndef QT_NO_CLIPBOARD
QApplication::clipboard()->setMimeData(md, m_selectionMode ?