[taskjuggler-devel] TaskJuggler - Printing with Mozilla

From: Juergen Brauckmann (brauckmann_at_trustcenter.de)
Date: Fri Nov 28 2003 - 10:50:14 CET


Message-ID: <3FC71A56.8020509@trustcenter.de>
Date: Fri, 28 Nov 2003 10:50:14 +0100
From: Juergen Brauckmann <brauckmann@trustcenter.de>
Subject: [taskjuggler-devel] TaskJuggler - Printing with Mozilla

Hi.

Mozilla 1.3-1.5 on Windows (did not check the linux versions) has a
problem printing task reports when the report spans several pages.

All but the first page have their background-color set to black, which
does not look very nice and consumes rather much ink:-)

It seems as if Mozilla takes the last background-color attribute
(doesn't matter from which HTML element) it encounters on the first page
and applies it to the body of all following pages, if the
background-color of the body is not explicitely defined.

The following patch sets the background-color from the whole body
explicitely to white.

--- HTMLReport.cpp Thu Jul 24 14:26:16 2003
+++ ../../taskjuggler-1.9.2_unstable/taskjuggler/HTMLReport.cpp Fri Nov
28 09:53:24 2003
@@ -74,7 +74,7 @@
      if (!rawStyleSheet.isEmpty())
          s << rawStyleSheet << endl;
      s << "</head>" << endl
- << "<body>" << endl;
+ << "<body style=\"background-color:#ffffff\">" << endl;

      if (!rawHead.isEmpty())
          s << rawHead << endl;

Regards,
    Juergen

-- 
To unsubscribe, email: taskjuggler-devel-unsubscribe@suse.com
For additional commands, email: taskjuggler-devel-help@suse.com


This archive was generated by hypermail 2.1.7 : Fri Nov 28 2003 - 14:58:13 CET