[PATCH 4/9] [WinHelp]: added proper RTF conversion for non breakable space and hyphen

Eric Pouech eric.pouech at orange.fr
Wed Apr 23 14:38:09 CDT 2008




A+
---

 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-patches mailing list