File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,18 @@ void CMUSHclientDoc::LogLineInHTMLcolour (POSITION startpos)
73
73
bInSpan = false ;
74
74
}
75
75
76
- WriteToLog (CFormat (" </font><font color=\" #%02X%02X%02X\" >" ,
76
+ // wrap up last colour change
77
+ if (prevcolour != NO_COLOUR)
78
+ WriteToLog (" </font>" );
79
+
80
+ WriteToLog (CFormat (" <font color=\" #%02X%02X%02X\" >" ,
77
81
GetRValue (colour1),
78
82
GetGValue (colour1),
79
83
GetBValue (colour1)
80
84
));
81
85
86
+ prevcolour = colour1;
87
+
82
88
// for efficiency we will only use <span> if we need to change the
83
89
// background colour
84
90
if (colour2 != 0 ) // ie. not black
@@ -122,7 +128,7 @@ void CMUSHclientDoc::LogLineInHTMLcolour (POSITION startpos)
122
128
WriteToLog (" </span>" );
123
129
124
130
// wrap up last colour change
125
- if (prevcolour != - 1 )
131
+ if (prevcolour != NO_COLOUR )
126
132
WriteToLog (" </font>" );
127
133
128
134
} // end of CMUSHclientDoc::LogLineInHTMLcolour
You can’t perform that action at this time.
0 commit comments