GNOME Bugzilla – Bug 706266
Multicolumn report creates invalid html
Last modified: 2018-06-29 23:18:33 UTC
The multicolumn report is rendered as an html page of which the page body is a table representing all the selected subreports. The problem is that the subreports are included as complete html pages, including html, head and body tags. This is invalid html. An multicolumn report with 2 subreports would roughly generate this pseudo html: <html> <head> (header metadata for the complete multicolumn report, including style info) </head> <body> (multicolumn report body, consisting of a table:) <table> <tr> <td> (first subreport, being a complete html page again:) <html><head>(subreport metadata)</head> <body>(the subreport's actual body)</body> </html> </td> <td> (second subreport, being a complete html page again:) <html><head>(subreport metadata)</head> <body>(the subreport's actual body)</body> </html> </td> </tr> </table> </body> </html> Obviously some parts should be stripped from the subreports to generate proper html: - the html tags - the body tags - the full header sections A quick glance at the code suggests that this may have worked in the past, or at least an attempt to make this work has been made: at some point an flag is passed to the renderers to enable or disable header generation. This can serve as a starting point to get this fixed.
Sidenote: if this bug can be fixed, it would open up the way to a cleaner solution for bug 704525. See the comments on that bug for more details.
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=706266. Please continue processing the bug there and please update any external references or bookmarks.