[PATCH] Re: GNUCash BZ 327630

Dave Herman dvherman at gmail.com
Tue Jan 31 18:51:32 EST 2006


I believe the problem described in Bugzilla 327630 is caused by a
missing "function" (gnc:html-document-set-style!) in both the "fancy"
and "easy" stylesheets.  Cutting and pasting the function from "plan
stylesheet" seems to resolve the issue.

The following patches appear, to my testing, to resolve the problem.

Note - I'm cross-posting the the BZ entry

Index: src/report/stylesheets/stylesheet-fancy.scm
===================================================================
--- src/report/stylesheets/stylesheet-fancy.scm (revision 13064)
+++ src/report/stylesheets/stylesheet-fancy.scm (working copy)
@@ -194,7 +194,17 @@
      'attribute (list "text" textcolor)
      'attribute (list "link" linkcolor))

+;;;;
+;;;;
+;;;;
     (gnc:html-document-set-style!
+     ssdoc "number-header"
+     'tag "th"
+     'attribute (list "align" "right"))
+;;;;
+;;;;
+;;;;
+    (gnc:html-document-set-style!
      ssdoc "number-cell"
      'tag "td"
      'attribute (list "align" "right")
Index: src/report/stylesheets/stylesheet-easy.scm
===================================================================
--- src/report/stylesheets/stylesheet-easy.scm  (revision 13064)
+++ src/report/stylesheets/stylesheet-easy.scm  (working copy)
@@ -220,6 +220,16 @@
      'attribute (list "bgcolor" bgcolor)
      'attribute (list "text" textcolor)
      'attribute (list "link" linkcolor))
+;;;;
+;;;;
+;;;;
+    (gnc:html-document-set-style!
+     ssdoc "number-header"
+     'tag "th"
+     'attribute (list "align" "right"))
+;;;;
+;;;;
+;;;;

     (gnc:html-document-set-style!
      ssdoc "number-cell"

===========================================================================



More information about the gnucash-devel mailing list