diff --git a/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java b/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java
index c6224026bc11..ea200c201b6f 100644
--- a/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java
+++ b/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/HtmlTransferableData.java
@@ -58,9 +58,7 @@ public class HtmlTransferableData extends AbstractSyntaxAwareReaderTransferableD
myFontNameRegistry = mySyntaxInfo.getFontNameRegistry();
try {
buildColorMap();
- myResultBuffer.append("
");
+ myResultBuffer.append("");
}
finally {
myResultBuffer = null;
diff --git a/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/RtfTransferableData.java b/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/RtfTransferableData.java
index 996e1c130054..d37da66b6f3d 100644
--- a/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/RtfTransferableData.java
+++ b/platform/lang-impl/src/com/intellij/openapi/editor/richcopy/view/RtfTransferableData.java
@@ -87,11 +87,9 @@ public class RtfTransferableData extends AbstractSyntaxAwareInputStreamTransfera
}
private static void rectangularBackground(@NotNull SyntaxInfo syntaxInfo, @NotNull StringBuilder buffer, @NotNull Runnable next) {
- buffer.append("\n\\s0\\box\\brdrhair\\brdrcf").append(syntaxInfo.getDefaultForeground()).append("\\brsp317").append("\\cbpat")
- .append(syntaxInfo.getDefaultBackground());
+ buffer.append("\n\\s0\\box").append("\\cbpat").append(syntaxInfo.getDefaultBackground());
saveBackground(buffer, syntaxInfo.getDefaultBackground());
next.run();
- buffer.append("\\par");
}
private static void content(@NotNull SyntaxInfo syntaxInfo, @NotNull StringBuilder buffer, @NotNull String rawText, int maxLength) {
diff --git a/platform/platform-tests/testData/editor/richcopy/BlockSelection.html b/platform/platform-tests/testData/editor/richcopy/BlockSelection.html
index 9f8c46f79625..1b92b6c49e76 100644
--- a/platform/platform-tests/testData/editor/richcopy/BlockSelection.html
+++ b/platform/platform-tests/testData/editor/richcopy/BlockSelection.html
@@ -1,3 +1,3 @@
- int field;
+ int field;
- public static void main(String[] args) {
\ No newline at end of file
+ public static void main(String[] args) {
\ No newline at end of file
diff --git a/platform/platform-tests/testData/editor/richcopy/BlockSelection.rtf b/platform/platform-tests/testData/editor/richcopy/BlockSelection.rtf
index 5285d4d58390..6ae37249c24e 100644
--- a/platform/platform-tests/testData/editor/richcopy/BlockSelection.rtf
+++ b/platform/platform-tests/testData/editor/richcopy/BlockSelection.rtf
@@ -1,7 +1,7 @@
{\rtf1\ansi\deff0{\colortbl;\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue128;}
{\fonttbl{\f1 ___PLATFORM_SPECIFIC___;}}
-\s0\box\brdrhair\brdrcf1\brsp317\cbpat2\cb2
+\s0\box\cbpat2\cb2
\cf3\f1\plain
\cf3\f1\fs___PLATFORM_SPECIFIC___\b
int \cf1\plain
@@ -15,4 +15,4 @@ field;
\cf3\f1\fs___PLATFORM_SPECIFIC___\b
public static void \cf1\plain
\cf1\f1\fs___PLATFORM_SPECIFIC___
-main(String[] args) \{\par}
\ No newline at end of file
+main(String[] args) \{}
\ No newline at end of file
diff --git a/platform/platform-tests/testData/editor/richcopy/NormalSelection.html b/platform/platform-tests/testData/editor/richcopy/NormalSelection.html
index 18efe35b80f1..e1abddb14277 100644
--- a/platform/platform-tests/testData/editor/richcopy/NormalSelection.html
+++ b/platform/platform-tests/testData/editor/richcopy/NormalSelection.html
@@ -1,8 +1,8 @@
-public class Basic {
+public class Basic {
int field;
public static void main(String[] args) {
System.out.println("Hello\tworld!");
}
}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/platform/platform-tests/testData/editor/richcopy/NormalSelection.rtf b/platform/platform-tests/testData/editor/richcopy/NormalSelection.rtf
index 5a7393a940c7..39ee491cb9c8 100644
--- a/platform/platform-tests/testData/editor/richcopy/NormalSelection.rtf
+++ b/platform/platform-tests/testData/editor/richcopy/NormalSelection.rtf
@@ -1,7 +1,7 @@
{\rtf1\ansi\deff0{\colortbl;\red0\green0\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue0;}
{\fonttbl{\f1 ___PLATFORM_SPECIFIC___;}}
-\s0\box\brdrhair\brdrcf1\brsp317\cbpat2\cb2\cf3\f1\plain
+\s0\box\cbpat2\cb2\cf3\f1\plain
\cf3\f1\fs___PLATFORM_SPECIFIC___\b
public class \cf1\plain
\cf1\f1\fs___PLATFORM_SPECIFIC___
@@ -32,4 +32,4 @@ world!"\cf1\plain
\}\line
\}\line
-\par}
\ No newline at end of file
+}
\ No newline at end of file