winhelp: Added proper RTF conversion for non breakable space and hyphen.
authorEric Pouech <eric.pouech@orange.fr>
Wed, 23 Apr 2008 19:38:09 +0000 (21:38 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 24 Apr 2008 10:19:54 +0000 (12:19 +0200)
programs/winhelp/hlpfile.c

index 92bcb1b26d07c35a89c543d7612044afedd0aa01..e327b541315c6dda77969c5eb7fb17b7f72a5d82 100644 (file)
@@ -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