Hi Huw,
I submitted more tests of EM_GETTEXTEX in https://source.winehq.org/patches/data/207366 . It exposed that EM_GETTEXTEX return content including OLE object mark for most of its mode, includes GT_DEFAULT and GT_RAWTEXT. The different between GT_DEFAULT and GT_RAWTEXT is that GT_DEFAULT doesn't includes tables and math objects.+#define MEGT_NOOLEOBJ 0x00000004 /* Replace OLE object mark with a space. */Wouldn't GT_RAWTEXT do what we want here?