diff --git a/comp/src/gb.eval.highlight/.src/TextHighlighter.class b/comp/src/gb.eval.highlight/.src/TextHighlighter.class
index 293d2aca6..ce4e8b773 100644
--- a/comp/src/gb.eval.highlight/.src/TextHighlighter.class
+++ b/comp/src/gb.eval.highlight/.src/TextHighlighter.class
@@ -133,8 +133,6 @@ Public Sub ToHTML(Text As String, Optional Theme As Variant) As String
aText = Split(Text, "\n")
iColor = 0
- aResult.Add("")
- sOldStyle = "color:#000000;"
For Y = 0 To aText.Max
@@ -177,8 +175,8 @@ Public Sub ToHTML(Text As String, Optional Theme As Variant) As String
If hStyle.Dotted Then sStyle &= "text-decoration:underline dotted;"
If sStyle <> sOldStyle Then
+ sHtml = If(sOldStyle, "", "") & "" & sHtml
sOldStyle = sStyle
- sHtml = "" & sHtml
Endif
sLineHtml &= sHtml
@@ -199,7 +197,7 @@ Public Sub ToHTML(Text As String, Optional Theme As Variant) As String
Next
- Return aResult.Join("
") & ""
+ Return "" & aResult.Join("
") & ""
End