diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 5e71e512fc..ef53c567f1 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -3951,7 +3951,7 @@ static void test_EM_STREAMOUT_empty_para(void) SendMessageA(hwnd, EM_STREAMOUT, SF_RTF, (LPARAM)&es); ok((p = strstr(buf, "\\pard")) != NULL, "missing \\pard\n"); - todo_wine ok(((p = strstr(p, "\\fs")) && isdigit(p[3])), "missing \\fs\n"); + ok(((p = strstr(p, "\\fs")) && isdigit(p[3])), "missing \\fs\n"); DestroyWindow(hwnd); } diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index baa2886156..809b93e5f4 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -1074,6 +1074,9 @@ static BOOL ME_StreamOutRTF(ME_TextEditor *editor, ME_OutStream *pStream, } nChars--; } else if (cursor.pRun->member.run.nFlags & MERF_ENDPARA) { + if (!ME_StreamOutRTFCharProps(pStream, &cursor.pRun->member.run.style->fmt)) + return FALSE; + if (cursor.pPara->member.para.fmt.dwMask & PFM_TABLE && cursor.pPara->member.para.fmt.wEffects & PFE_TABLE && !(cursor.pPara->member.para.nFlags & (MEPF_ROWSTART|MEPF_ROWEND|MEPF_CELL)))