[PATCH] Printing

Lars Knoll lars at trolltech.com
Fri May 24 09:42:46 BST 2002


Hi Waldo,

try the patch attached. The difference is that the print style sheet gets 
added as a user style sheet where !important is allowed (and even has higher 
precedence than !important in the webpages sheet.

Cheers,
Lars


> On Thursday 23 May 2002 01:29 am, Lars Knoll wrote:
> > > The following patch fixes the "problem" with a small part of the text
> > > being repeated at the top of the next page.
> >
> > Hmmm... that's a lot easier than doing real paged layout, but will solve
> > the printing problem. Great idea :)
>
> The problem which remains then is that I somehow need to ignore the margin
> set for the body when printing because the print routine adds the margin
> already (I could change the print algorithm so that it takes the value set
> for the body into account with some restrictions) but if the html rendering
> also adds the margin you get too much margin on pages that correctly
> specify one.
>
> Since I can't use !important to override the margin I am out of ideas for
> that one.
>
> Cheers,
> Waldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtmlview_print.diff
Type: text/x-diff
Size: 948 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020524/17a3b56e/attachment.diff>


More information about the kfm-devel mailing list