Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv4328/src/modules

Modified Files:
        HtmlViewer.cpp 
Log Message:
don't eat spaces in the beginning of the line

Index: HtmlViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/HtmlViewer.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -b -u -2 -r1.52 -r1.53
--- HtmlViewer.cpp      19 Sep 2003 13:31:23 -0000      1.52
+++ HtmlViewer.cpp      2 Oct 2003 09:48:22 -0000       1.53
@@ -47,15 +47,4 @@
 
 // ----------------------------------------------------------------------------
-// constants
-// ----------------------------------------------------------------------------
-
-// the possible values of MakeHtmlSafe() second parameter
-enum HtmlSpaceMode
-{
-   HtmlSpace_DontBreak,
-   HtmlSpace_Keep
-};
-
-// ----------------------------------------------------------------------------
 // private functions
 // ----------------------------------------------------------------------------
@@ -65,6 +54,5 @@
 
 // filter out special HTML characters from the text
-static wxString MakeHtmlSafe(const wxString& text,
-                             HtmlSpaceMode htmlSpaceMode = HtmlSpace_DontBreak);
+static wxString MakeHtmlSafe(const wxString& text);
 
 // ----------------------------------------------------------------------------
@@ -683,5 +671,5 @@
 }
 
-static wxString MakeHtmlSafe(const wxString& text, HtmlSpaceMode htmlSpaceMode)
+static wxString MakeHtmlSafe(const wxString& text)
 {
    wxString textSafe;
@@ -722,11 +710,6 @@
 
          case ' ':
-            // replace the spaces with non breaking ones if necessary
-            if ( htmlSpaceMode == HtmlSpace_DontBreak )
-            {
                textSafe += " ";
                break;
-            }
-            //else: fall through
 
          default:
@@ -980,5 +963,5 @@
    FontStyleChanger styleChanger(style.GetFont(), m_htmlText);
 
-   m_htmlText += MakeHtmlSafe(text, HtmlSpace_Keep);
+   m_htmlText += MakeHtmlSafe(text);
 }
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to