diff --git a/src/cell.h b/src/cell.h index 63153afc..976c94e0 100755 --- a/src/cell.h +++ b/src/cell.h @@ -264,7 +264,7 @@ struct Cell { style += wxString::Format(L"background-color: #%06X;", SwapColor(cellcolor)); if (textcolor != 0x000000) style += wxString::Format(L"color: #%06X;", SwapColor(textcolor)); - str.Prepend(L""); + str.Prepend(style.IsEmpty() ? L"" : L""); str.Append(L' ', indent); str.Append(L"\n"); } else if (format == A_EXPHTMLB && (text.t.Len() || grid) && this != doc->curdrawroot) {