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 616610 - Hardcode HTML in generation script.
Hardcode HTML in generation script.
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Reports
2.3.x
Other Windows
: Normal enhancement
: ---
Assigned To: Andreas Köhler
Andreas Köhler
Depends on:
Blocks:
 
 
Reported: 2010-04-23 08:36 UTC by Tao Wang
Modified: 2018-06-29 22:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tao Wang 2010-04-23 08:36:39 UTC
I don't think it is a good way to do that. It will strongly limited
the way of customize report. 

There should be a templates, which can be edit by HTML designer. It's important that the HTML designer should not have to learn a script language to do the design. They should be able open a template with their often used HTML editor. And edit it as a normal webpage, but for the data part, they can put some special label instead. And then the report generate engine should replaces several labels in the template to generated the report.

Combining generation code and HTML makes designer without programming knowledge hard to edit the template.

All style should be controlled by CSS. And no Inline Style should be used. It's better use linked style, and copy the choosen CSS file to the same location of the report.

Or, you can generate report in XML format, and use different XLST to generate different style of report.

All the above methods are designed to seperate generation and the HTML template, and seperate data and representation.
Comment 1 John Ralls 2018-06-29 22:38:21 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=616610. Please continue processing the bug there and please update any external references or bookmarks.