From 1e5199af352ea45f5f6785c325cbbff99f66ff5f Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Wed, 23 Apr 2008 21:38:09 +0200 Subject: [PATCH] winhelp: Added proper RTF conversion for non breakable space and hyphen. --- programs/winhelp/hlpfile.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c index 92bcb1b26d..e327b54131 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: - case 0x8C: - WINE_FIXME("NIY non-break space/hyphen\n"); + if (!HLPFILE_RtfAddControl(rd, "\\~")) goto done; format += 1; + if (rd) /* FIXME: TEMP */ rd->char_pos++; + break; + + case 0x8C: + 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