r20679 - gnucash/branches/2.4/src/report/stylesheets - [20675] Bug #650757: Fix Easy & footer styles output wrong tags </btd> iso </b></td> preventing HTML 4.01 Transitional validation
Christian Stimming
cstim at code.gnucash.org
Mon May 23 15:20:38 EDT 2011
Author: cstim
Date: 2011-05-23 15:20:38 -0400 (Mon, 23 May 2011)
New Revision: 20679
Trac: http://svn.gnucash.org/trac/changeset/20679
Modified:
gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm
gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm
Log:
[20675] Bug #650757: Fix Easy & footer styles output wrong tags </btd> iso </b></td> preventing HTML 4.01 Transitional validation
Patch by Bert:
This patch removes the wrong </btd> tags and closes the center tag in the
footer and easy stylesheets.
Just like Bug #650163 (and related to bug #616611) the easy & footer
stylesheets:
*output </btd> tags instead of <b></td>
*are missing a </center> tag
preventing html validation.
This patch removes the intended </b> and makes a clean </td> out of the
necessary tags. The styles are set through css anyhow. Furthmore it adds the
closing </center> tag.
Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm 2011-05-23 19:20:25 UTC (rev 20678)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-easy.scm 2011-05-23 19:20:38 UTC (rev 20679)
@@ -275,22 +275,22 @@
(gnc:html-document-set-style!
ssdoc "total-number-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "total-number-cell"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "total-number-cell neg"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "total-label-cell"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
@@ -344,22 +344,22 @@
(gnc:html-document-set-style!
ssdoc "total-number-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "center"))
)
)
@@ -471,6 +471,7 @@
t 2 headcolumn
(gnc:html-document-objects doc))
(gnc:html-document-add-object! ssdoc t))
+ (gnc:html-document-add-object! ssdoc (gnc:make-html-text "</center>")) ;;TODO: make this a div instead of <center> (deprecated)
ssdoc))
(gnc:define-html-style-sheet
Modified: gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm
===================================================================
--- gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm 2011-05-23 19:20:25 UTC (rev 20678)
+++ gnucash/branches/2.4/src/report/stylesheets/stylesheet-footer.scm 2011-05-23 19:20:38 UTC (rev 20679)
@@ -289,22 +289,22 @@
(gnc:html-document-set-style!
ssdoc "total-number-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "total-number-cell"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "total-number-cell neg"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "total-label-cell"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "class" "centered-label-cell"))
)
(begin ;; this is for gtkhtml
@@ -358,22 +358,22 @@
(gnc:html-document-set-style!
ssdoc "total-number-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-number-cell-neg"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "right"))
(gnc:html-document-set-style!
ssdoc "total-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "left"))
(gnc:html-document-set-style!
ssdoc "centered-label-cell"
- 'tag '("td" "b")
+ 'tag '("td")
'attribute (list "align" "center"))
)
)
@@ -489,6 +489,7 @@
(gnc:html-table-set-cell!
t 3 headcolumn
(gnc:make-html-text footer-text)))
+ (gnc:html-document-add-object! ssdoc (gnc:make-html-text "</center>")) ;;TODO: make this a div instead of <center> (deprecated)
ssdoc))
(gnc:define-html-style-sheet
More information about the gnucash-changes
mailing list