riched20: Fix placement of crlf on font table streamout.
authorMassimo Del Fedele <max@veneto.com>
Sat, 25 Apr 2009 17:56:11 +0000 (19:56 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 27 Apr 2009 11:24:09 +0000 (13:24 +0200)
dlls/riched20/writer.c

index b6c3ed6..6cadbd4 100644 (file)
@@ -295,10 +295,10 @@ ME_StreamOutRTFFontAndColorTbl(ME_OutStream *pStream, ME_DisplayItem *pFirstRun,
     }
     if (!ME_StreamOutRTFText(pStream, table[i].szFaceName, -1))
       return FALSE;
-    if (!ME_StreamOutPrint(pStream, ";}\r\n"))
+    if (!ME_StreamOutPrint(pStream, ";}"))
       return FALSE;
   }
-  if (!ME_StreamOutPrint(pStream, "}"))
+  if (!ME_StreamOutPrint(pStream, "}\r\n"))
     return FALSE;
 
   /* Output colors table if not empty */