Eric Pouech : winhelp: Added proper RTF conversion for non breakable space and hyphen.

Alexandre Julliard julliard at winehq.org
Thu Apr 24 06:23:57 CDT 2008


Module: wine
Branch: master
Commit: 1e5199af352ea45f5f6785c325cbbff99f66ff5f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1e5199af352ea45f5f6785c325cbbff99f66ff5f

Author: Eric Pouech <eric.pouech at 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




More information about the wine-cvs mailing list