Gnus development mailing list
 help / color / mirror / Atom feed
From: Julien Danjou <julien@danjou.info>
To: ding@gnus.org
Subject: Re: [PATCH] shr: render table with style
Date: Tue, 07 Dec 2010 12:16:15 +0100	[thread overview]
Message-ID: <sa3d3pdq1ds.fsf@cigue.easter-eggs.fr> (raw)
In-Reply-To: <m3y681luut.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 07 Dec 2010 11:50:50 +0100")

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

On Tue, Dec 07 2010, Lars Magne Ingebrigtsen wrote:

> If you replace bgcolor with style="background-color: black", it looks
> like I would expect...  but perhaps I'm expecting the wrong thing?

Yes it does. The problem is that bgcolor attribute reading is not done
at the same level than style parsing. So, unless you want to special
case bgcolor for <table> in shr-descend, which would be ugly, I do not
see how to deal with that.

Well, I do have an idea: I think the colorization is not done at the
right level. Maybe that should be the responsibility of shr-insert to
colorize what it inserted, based on the current value of shr-stylesheet.

That would solve the <table bgcolor=> problem, at least partially.
Because the table code use `insert' rather than `shr-insert' for things
like borders, they would not be colorized. This is why in my patches
I've introduced another shr-insert-with-style function, and because
shr-insert do some weird treatment on text.

I let you think about that. :)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2010-12-07 11:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 17:30 Julien Danjou
2010-12-06 17:39 ` Lars Magne Ingebrigtsen
2010-12-06 17:42   ` Lars Magne Ingebrigtsen
2010-12-06 18:07     ` Lars Magne Ingebrigtsen
2010-12-07  9:19       ` Julien Danjou
2010-12-07 10:50         ` Lars Magne Ingebrigtsen
2010-12-07 11:16           ` Julien Danjou [this message]
2010-12-07 11:31             ` Lars Magne Ingebrigtsen
2010-12-07 11:38               ` Julien Danjou
2010-12-07 11:48                 ` Lars Magne Ingebrigtsen
2010-12-07 12:08                   ` Julien Danjou
2010-12-07 12:14                     ` Lars Magne Ingebrigtsen
2010-12-07 12:25                       ` Julien Danjou
2010-12-07 12:32                         ` Lars Magne Ingebrigtsen
2010-12-07 15:27                           ` Julien Danjou
2010-12-07 16:34                             ` Lars Magne Ingebrigtsen
2010-12-07 17:00                               ` Julien Danjou
2010-12-16 17:27                                 ` Lars Magne Ingebrigtsen
2010-12-17  9:23                                   ` Julien Danjou
2010-12-07  9:13     ` Julien Danjou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sa3d3pdq1ds.fsf@cigue.easter-eggs.fr \
    --to=julien@danjou.info \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).