OSDN Git Service

Fix the problem of HTML Flie Compare Report not showing whitespace at the beginning...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Fri, 3 Apr 2020 12:43:48 +0000 (21:43 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Fri, 3 Apr 2020 12:43:48 +0000 (21:43 +0900)
Externals/crystaledit/editlib/ccrystaltextview.cpp

index 343dfa2..548b689 100644 (file)
@@ -1913,7 +1913,7 @@ EscapeHTML (const CString & strText, bool & bLastCharSpace, int & nNonbreakChars
             nNonbreakChars = 0;
             break;
           case ' ':
-            if (bLastCharSpace)
+            if (i == 0 || bLastCharSpace)
               {
                 strHTML += _T("&nbsp;");
                 bLastCharSpace = false;