Skip to content

Commit

Permalink
imp:cli:html output: add a charset=UTF-8 meta header [#2301]
Browse files Browse the repository at this point in the history
For general correctness of reports' HTML output.
  • Loading branch information
simonmichael committed Dec 28, 2024
1 parent 4c46502 commit 6c8f857
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hledger-lib/Hledger/Write/Html/Lucid.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type Html = Html.Html ()

printHtml :: (Lines border) => [[Cell border Html]] -> Html
printHtml table = do
Html.meta_ [Html.charset_ "UTF-8"]
Html.link_ [Html.rel_ "stylesheet", Html.href_ "hledger.css"]
Html.style_ Attr.tableStylesheet
Html.table_ $ traverse_ formatRow table
Expand Down

0 comments on commit 6c8f857

Please sign in to comment.