Skip to content

Commit

Permalink
Do not emit empty style attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo committed Sep 8, 2023
1 parent 8d4073d commit 4016c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"<td style=\"" + style + L"\">");
str.Prepend(style.IsEmpty() ? L"<td>" : L"<td style=\"" + style + L"\">");
str.Append(L' ', indent);
str.Append(L"</td>\n");
} else if (format == A_EXPHTMLB && (text.t.Len() || grid) && this != doc->curdrawroot) {
Expand Down

0 comments on commit 4016c06

Please sign in to comment.