[GNC] GnuCash 3.7 and Reports

John Morris johnjeff at editide.us
Tue Sep 10 19:39:28 EDT 2019


Hi Adrien,
  You were right, the changes I had made did have a bearing on this problem. However, they only reveal the miscoded HTML in GnuCash 3. Also, the changes in question are to the invoice report itself, not the stylesheet.

  It turns out that the relevant change I made is that we have no need for several of the columns (Date, Action, Discount and Taxable). As soon as those columns are eliminated, the table becomes narrower. Digging deeper, I discovered that GnuCash 2.6 inserts a vitally important width=“100%” into all but the outermost <table> command in the invoice. GnuCash 3.7 does not insert that argument. Thus, when several columns are removed, the table is narrower. Of course, my banner is still the same width, leaving the invoice body too small for the page.

  If you can confirm this behavior, I think we can call this a bug.

  Fortunately, I think I have found a workaround until the code is corrected. Thinking back about my misadventures with the CSS, I remembered that there was a width: 100% for each of the subtables. However, looking at the HTML code, I noticed that there was an additional table called “main-table” enclosing everything except the banner. This table style was not given the 100% width. Adding 

.main-table > table { width: 100% }

to the end of the CSS field in the invoice options gives me exactly what I want.

Best,
John



More information about the gnucash-user mailing list