riched20: Write the char format for the end-of-paragraph marker.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-03-03 10:10:41 +00:00 committed by Alexandre Julliard
parent b60cd68308
commit 3d291dd7ee
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}

View File

@ -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)))