Skip to content

Commit

Permalink
Translate STYLE_STRIKETHRU into HTML CSS style (#480)
Browse files Browse the repository at this point in the history
In HTML Exports, struck out text is now exported as such by adding the
corresponding `text-decoration` CSS style.

See <https://drafts.csswg.org/css-text-decor/#text-decoration-property>
  • Loading branch information
tobiolo authored Aug 2, 2023
1 parent e3b52c6 commit 43d7ac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ struct Cell {
if (text.stylebits & STYLE_ITALIC) style += L"font-style: italic;";
if (text.stylebits & STYLE_FIXED) style += L"font-family: monospace;";
if (text.stylebits & STYLE_UNDERLINE) style += L"text-decoration: underline;";
if (text.stylebits & STYLE_STRIKETHRU) style += L"text-decoration: line-through;";
if (cellcolor != doc->Background())
style += wxString::Format(L"background-color: #%06X;", SwapColor(cellcolor));
if (textcolor != 0x000000)
Expand Down

0 comments on commit 43d7ac3

Please sign in to comment.