Skip to content

Conversation

@jokesper
Copy link
Contributor

@jokesper jokesper commented Oct 23, 2025

A HTML export results in a table which has a stylesheet and another table nested inside. This is not valid HTML and gets auto corrected by closing the first table and opening another table. The result is the heading of the table can expand further than the remaining table.

This results in a few notable changes (as seen below):

  • The date is in a far bigger cell and it's very noticeable it's centered compared to the amounts
    (we may want to right align the date, though I don't have any particular thoughts about this)
  • We no longer have two consecutive lines with black background and the start
  • The table is as big as the heading (+ the default left margin)

Using the following small example journal:

D 1,000.00€

account foo  ; type: A
account bar  ; type: A

2025-01-01 Test
	foo   1,000.00€
	bar  -1,000.00€

We get the following difference:

Old New
Old New

In case we do not want this new look, I still recommend fixing the tables But in this case this can simply be done by dropping the top table and only have the heading. I do not recommend this since the table not extending as far as the heading looks (especially on a longer list of accounts) rather weird.

A HTML export results in a table which has a stylesheet and another table
nested inside. This is not valid HTML and gets auto corrected by closing the
first table and opening another table. The result is the heading of the table
can expand further than the remaining table.

This results in a few notable changes:

- The date is in a far bigger cell and it's very noticeable it's centered compared to the amounts
  (we may want to right align the date, though I don't have any particular thoughts about this)
- We no longer have two consecutive lines with black background and the start
- The table is as big as the heading (+ the default left margin)
@jokesper
Copy link
Contributor Author

Depending on what people do with the HTMLs this may also be considered breaking

@simonmichael
Copy link
Owner

I'm sorry I've been slow on PRs lately; I will look at this soon. 🙏🏻

@simonmichael
Copy link
Owner

Sigh, such a fine simple PR, such a slow review. Thank you @jokesper !!

@simonmichael simonmichael merged commit e2f2a22 into simonmichael:master Nov 5, 2025
1 check passed
@simonmichael simonmichael added the html The html output format. label Nov 5, 2025
@jokesper jokesper deleted the fix-html-export branch November 5, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

html The html output format.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants