Reports broken?
Mike Evans
mikee at saxicola.idps.co.uk
Mon Jul 26 05:03:13 EDT 2010
On Sunday July 25 2010 22:37:14 J. Alex Aycinena wrote:
> > From: Mike Evans <mikee at saxicola.idps.co.uk>
> > To: gnucash-devel at gnucash.org
> > Date: Sun, 25 Jul 2010 10:40:38 +0100
> > Subject: Re: Reports broken?
>
> > On Sunday July 25 2010 06:46:54 J. Alex Aycinena wrote:
> <snip>
>
> >> > In /usr/local/share/gnucash/scm/html-style-sheet.scm:
> >> > 233: 26 (let (# #) (gnc:html-document-set-title! newdoc #) ...)
> >> > 233: 27* [easy-renderer #<procedure dispatch #> #]
> >> > In
> >> > /usr/local/share/gnucash/guile-modules/gnucash/report/stylesheet-easy.
> >> > sc m: 180: 28 (let* (# # # ...) (gnc:html-document-add-object! ssdoc
> >> > #) ...) 317: 29* (let* ((t #)) (gnc:html-table-set-style! t "table"
> >> > ...) ...) 331: 30* [add-css-information-to-doc #<procedure dispatch
> >> > #> #] In /usr/local/share/gnucash/scm/html-fonts.scm:
> >> > 115: 31 (let* (# # # # ...) (gnc:html-document-set-style-text! ssdoc
> >> > #)) 120: 32* [#<procedure #f (section name)> "General" "Enable
> >> > Alternate Line Shading"]
> >> > 118: 33 [gnc:option-value #f]
> >> > In /usr/local/share/gnucash/scm/options.scm:
> >> > 139: 34 (let* ((getter (gnc:option-getter option))) (getter))
> >> > 139: 35* [gnc:option-getter #f]
> >> > 112: 36 [vector-ref #f 5]
> >> > /usr/local/share/gnucash/scm/options.scm:112:3: In procedure
> >> > vector-ref in expression (vector-ref option 5):
> >> > /usr/local/share/gnucash/scm/options.scm:112:3: Wrong type argument in
> >> > position 2: 5
>
> <snip>
>
> >> This is due to changes in a patch I sent in. If, in the report
> >> options, you specify the stylesheet as 'default', they should work for
> >> now. I will have to send in patches for the other stylesheets to
> >> conform to changes in 'html-fonts.scm' so that they will work also. I
> >> will do this soon.
> >
> > Alex
> > It's broken no matter what stylesheet I use.
> > But you patch was for taxtxf.scm, yes? It seems unlikely that it would
> > have affected all reports.
> > Mike
>
> Mike,
>
> I've built r19378 on Fedora 13 (you mentioned F12) first with webkit
> and then with gtkhtml and, in both cases, all reports (or all that
> I've tried) work with the default stylesheet but fail and give me
> similar log output to what you provided with any other stylsheet. So
> that has me confused.
>
> The patch was for taxtxf.scm but I also changed html-fonts.scm and
> stylesheet-plain.scm so that taxtxf.scm would format the same with
> either webkit or gtkhtml.
>
> The reference to '(section name)> "General" "Enable Alternate Line
> Shading"' under html-fonts.scm in your log output is my change and
> this causes a problem in options.scm when used with
> stylesheet-easy.scm.
>
> Can you show me the log output you get when it fails for you with the
> default stylesheet, please (that would show stylesheet-plain.scm in
> your output instead of stylesheet-easy.scm, I believe).
>
> Thanks,
>
Alex
That jogged a memory. At some time I had changed my default stylesheet to the
Easy stylesheet so by selecting Default I was in fact using the Easy
stylesheet! My reasoning at the time was to get a bigger LH margin to a) fit
the address in the envelope window and b) give space to punch holes for my
ring binder.
In Edit>Style Sheets I deleted default, then recreated it based on simple
style. I now get a report however, I now have a small LH margin that doesn't
fit my needs. I still use 2.2 for my *real* accounts so no real problem at the
moment but a larger LH margin is essential for my needs. I've not looked at
the newer stylesheets, maybe I can adapt the default to suit my marginal
needs.
Thanks for your help, it at least jogged my memory and revealed the problem to
be of my own making . (Again). That's the trouble with being a hacker with a
poor memory :)
Regards
Mike
--
GPG Key: 1024D/050895C2
Keyserver: http://pgp.mit.edu/
Search String: 0x050895C2
More information about the gnucash-devel
mailing list