Module: wine Branch: master Commit: 1e5199af352ea45f5f6785c325cbbff99f66ff5f URL: http://source.winehq.org/git/wine.git/?a=commit;h=1e5199af352ea45f5f6785c325... Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Wed Apr 23 21:38:09 2008 +0200 winhelp: Added proper RTF conversion for non breakable space and hyphen. --- programs/winhelp/hlpfile.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c index 92bcb1b..e327b54 100644 --- a/programs/winhelp/hlpfile.c +++ b/programs/winhelp/hlpfile.c @@ -1200,9 +1200,16 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, BYTE break; case 0x8B: + if (!HLPFILE_RtfAddControl(rd, "\\~")) goto done; + format += 1; + if (rd) /* FIXME: TEMP */ rd->char_pos++; + break; + case 0x8C: - WINE_FIXME("NIY non-break space/hyphen\n"); + if (!HLPFILE_RtfAddControl(rd, "\\_")) goto done; + /* FIXME: it could be that hypen is also in input stream !! */ format += 1; + if (rd) /* FIXME: TEMP */ rd->char_pos++; break; #if 0