[GNC] Report headings, can one separate the company name from the report name?

Christopher Lam christopher.lck at gmail.com
Thu Oct 1 00:23:02 EDT 2020


Please be aware that inserting raw HTML into textual fields in datafile or
report options is a wart and will very likely be sanitized in the future.
At best, simple formatting elements e.g. multiline into <br/> tags are
already possible in some report options.

The reason is it's not difficult to craft a data file containing html and
JavaScript and can damage the data file or the underlying file system.

On Thu, 1 Oct 2020, 12:42 am Chris Green, <cl at isbd.net> wrote:

> On Mon, Sep 28, 2020 at 09:04:28PM +0100, Chris Green wrote:
> > I have just been looking at and printing some reports, the 'Company
> > Name' set in Properties is just put on the same line as the report
> > name.
> >
> > Is there any way to get the Company Name on a line by itself at the
> > top of the report?
> >
> No answers?  It seems such an obvious thing to want to do.
>
> Anyway I've found a bit of a 'hack' that does what I want.  Since the
> reports are all HTML then one can add HTML to the strings in options.
>
> I just changed the business name from "This is my business name" to
> "This is my business name<BR>" and now it appears in a line by itself
> at the top of the report.
>
> --
> Chris Green
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


More information about the gnucash-user mailing list