riched20: Remove a hack that should be longer be needed.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3d291dd7ee
commit
8b79854d70
|
@ -382,14 +382,6 @@ ME_StreamOutRTFFontAndColorTbl(ME_OutStream *pStream, ME_DisplayItem *pFirstRun,
|
||||||
if (!ME_StreamOutPrint(pStream, "}\r\n"))
|
if (!ME_StreamOutPrint(pStream, "}\r\n"))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* It seems like Open Office ignores \deff0 tag at RTF-header.
|
|
||||||
As result it can't correctly parse text before first \fN tag,
|
|
||||||
so we can put \f0 immediately after font table. This forces
|
|
||||||
parser to use the same font, that \deff0 specifies.
|
|
||||||
It makes OOffice happy */
|
|
||||||
if (!ME_StreamOutPrint(pStream, "\\f0"))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* Output the color table */
|
/* Output the color table */
|
||||||
if (!ME_StreamOutPrint(pStream, "{\\colortbl;")) return FALSE; /* first entry is auto-color */
|
if (!ME_StreamOutPrint(pStream, "{\\colortbl;")) return FALSE; /* first entry is auto-color */
|
||||||
for (i = 1; i < pStream->nColorTblLen; i++)
|
for (i = 1; i < pStream->nColorTblLen; i++)
|
||||||
|
|
Loading…
Reference in New Issue