Generate ending \par in RTF output of RichEdit when streaming out a
whole document.
This commit is contained in:
parent
6dd67f3d48
commit
2b6b09f591
|
@ -681,6 +681,8 @@ ME_StreamOutRTF(ME_TextEditor *editor, int nStart, int nChars, int dwFormat)
|
|||
if (!ME_StreamOutPrint(editor, "\r\n\\par"))
|
||||
return FALSE;
|
||||
nChars--;
|
||||
if (editor->bEmulateVersion10 && nChars)
|
||||
nChars--;
|
||||
} else {
|
||||
int nEnd;
|
||||
|
||||
|
@ -790,7 +792,12 @@ ME_StreamOut(ME_TextEditor *editor, DWORD dwFormat, EDITSTREAM *stream)
|
|||
nTo = -1;
|
||||
}
|
||||
if (nTo == -1)
|
||||
{
|
||||
nTo = ME_GetTextLength(editor);
|
||||
/* Generate an end-of-paragraph at the end of SCF_ALL RTF output */
|
||||
if (dwFormat & SF_RTF)
|
||||
nTo++;
|
||||
}
|
||||
TRACE("from %d to %d\n", nStart, nTo);
|
||||
|
||||
if (dwFormat & SF_RTF)
|
||||
|
|
Loading…
Reference in New Issue