[GNC] Styles of different items in GNUcash reports

Adrien Monteleone adrien.monteleone at lusfiber.net
Mon Jan 11 21:11:13 EST 2021


Ray,

Unfortunately, there is no immediate solution except employing another 
app like a spreadsheet.

This report (as it seems most if not all reports) treat the entire 
report like one big table for layout purposes, and not many of the 
presentation elements are given classes to expose them to CSS. (and the 
individual HTML elements are non-unique, for example, these account 
labels are just <td> elements, thus no different from any other row in 
the table)

You might file an RFE on GnuCash's Bugzilla to request classes be given 
for styling, which shouldn't be too difficult. (though the more semantic 
albeit complicated fix is to re-do the report HTML entirely)

With most spreadsheets, you should be able to do a multi-select of each 
account label and style them all at once. Or, assign a style to those 
cells and adjust its definition.

Regards,
Adrien

On 1/11/21 10:23 AM, Raimund Strehl wrote:
> I am trying to fix an issue with the formatting of different items in a simple journal or general ledger.
> What I am trying to achieve is to format the primary sorting key in BOLD, but it appears that this item does not have s style of its own.
> In my case the primary sorting key are the accounts
> The primary sorting key in the generated report seems to be using the background color as defined for the subheader (in e.g. the technicolor style).
> But it does not appear to have a text style of its own, it appears to use the test style as defined for the normal text field
> Example of report
> 
> 1000 Bank account One <-- I want this bold
> 01.01.2020 Transfer 2000 EUR
> 02.01.2020 Transfer 1000 EUR
> Total 3000 EUR
> 1100 Bank account Two <-- I want this bold
> 03.01.2020 Transfer 6000 EUR
> 05.01.2020 Transfer 4000 EUR
> Total 10000 EUR
> 
> Does anyone have an idea of a workaround or any ongoing improvement to allow this in GNUcash.
> Right now my only option is to export the HTML, import in Excel and do this manually.
> Feels like a waste of time as the report function in GNUcash is otherwise very nice and easy.



More information about the gnucash-user mailing list