From d67c9801bd0026a3c2ffc84d6d499fd2b33cb572 Mon Sep 17 00:00:00 2001 From: Filip Rychnavsky Date: Tue, 18 Jun 2019 14:29:33 +0200 Subject: [PATCH] =?UTF-8?q?Use=20"\n"=20as=20a=20delimiter=20for=20RTF=20s?= =?UTF-8?q?egments.=20Explanation:=20A=20space=20character=20is=20meaningl?= =?UTF-8?q?ess=20only=20if=20it=E2=80=99s=20the=20optional=20meaningless?= =?UTF-8?q?=20space=20at=20the=20end=20of=20a=20command.=20Otherwise,=20ev?= =?UTF-8?q?ery=20space=20character=20means=20to=20insert=20a=20space=20cha?= =?UTF-8?q?racter!=20A=20newline=20(or=202=20or=2015)=20doesn=E2=80=99t=20?= =?UTF-8?q?indicated=20a=20linebreak.=20(=20RTF=20Pocket=20Guide=20by=20Se?= =?UTF-8?q?an=20M.=20Burke=20https://www.oreilly.com/library/view/rtf-pock?= =?UTF-8?q?et-guide/9781449302047/ch01.html)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ScintillaNET/Helpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScintillaNET/Helpers.cs b/src/ScintillaNET/Helpers.cs index 43c4add..9352949 100644 --- a/src/ScintillaNET/Helpers.cs +++ b/src/ScintillaNET/Helpers.cs @@ -599,7 +599,7 @@ private static unsafe void CopyRtf(Scintilla scintilla, StyleData[] styles, List // NOTE: We don't support StyleData.Visible and StyleData.Case in RTF lastStyle = style; - tw.Write(" "); // Delimiter + tw.Write("\n"); // Delimiter } switch (ch)