After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706266 - Multicolumn report creates invalid html
Multicolumn report creates invalid html
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Reports
git-master
Other All
: Normal normal
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-18 19:48 UTC by Geert Janssens
Modified: 2018-06-29 23:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Geert Janssens 2013-08-18 19:48:20 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.
Comment 1 Geert Janssens 2013-08-18 21:38:53 UTC
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.
Comment 2 John Ralls 2018-06-29 23:18:33 UTC
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.