From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74788 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] shr: render table with style Date: Mon, 06 Dec 2010 18:39:51 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: <1291656608-16263-1-git-send-email-julien@danjou.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291657227 11372 80.91.229.12 (6 Dec 2010 17:40:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 17:40:27 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23144@lists.math.uh.edu Mon Dec 06 18:40:22 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPf2z-00005T-R1 for ding-account@gmane.org; Mon, 06 Dec 2010 18:40:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PPf2s-00064X-4x; Mon, 06 Dec 2010 11:40:14 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PPf2q-00064H-L4 for ding@lists.math.uh.edu; Mon, 06 Dec 2010 11:40:12 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PPf2m-0007EA-68 for ding@lists.math.uh.edu; Mon, 06 Dec 2010 11:40:12 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PPf2l-0004e0-00 for ; Mon, 06 Dec 2010 18:40:07 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PPf2i-0008OG-Af for ding@gnus.org; Mon, 06 Dec 2010 18:40:04 +0100 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 18:40:04 +0100 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 18:40:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXc1c4oFxO7r6ULAwLW 0MvRysGIb2Xm4diYoD6qAAACRElEQVQ4jW2TTY+bMBCGp5EpZxTJ50DBPSNLe7Yik15ZZNNr7Q1z RpFW/P3O2CHZbXfyYcdP3vnyAEu5/W9gB+gMfEE2AZ01X2iggNYAELlVn+zPkADAduu13k+PWjMg AZTrQWdjQMt1V8BNP4gMGdjyHxDrp6ttfQLZqR18VsRxzq44dll+UPx+/aB4ZNVX6md9VyR7gFAt b490y2eMPtZyr8NyJYe+ymDZQQeQgMRjip3B4qm7YAwDFVggG4WsmKBzRjCITdCV7lHFN1YQsBTD EPBKy6pClVwSaFNsOHR+qjBUkjt1VxiKAjcCKjYolx86x2hFVix+8k03BXnUuythGcTJ+4JU6Xx3 ZYy5RU+gaJqg764ICBBQIDbJsKLcqo5ccXn0nmI40klPrnqUQ0pXcN9T/n3gC9cvaBkAA4HcCV0H Xnr0BCD1vcAUta4ZSAZddgWpRbuisffKwawxVVznGBnYdFWqTjfO86lfFLtyzhEaMKpcCF0IKqqj 86Mzzh6sOJ/yUAprfMvAO2vtWcWI9FfF34isGLxjohr6HdSMkTLLgKNbMdO5vOD8LSoZ0HHlZMKI Bb9fMS4zXhu8pKwolgFhahqDEGMdg6RdUnB7oWjpPrpp8YOjTdN6cFT3LwInWMtym0/rtq5g2wGc 4Adnez+VGz29r7FdeZQJjHna37nmrryM59QAVvD9lbD6KaGGZohsZGCA20u9p45MnkfGWkeAyqCP EbQCl8o2eMoq5ecHejk/WlukDdXhBv/R3H2d/gJgQ/YsW+DAbQAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Sandy Denny's _Complete Recordings 10 (Rendezvous)_: "No More Sad Refrains" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:7UnH1sU1inTWdts21iqWSSobgI8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74788 Archived-At: Julien Danjou writes: >
black background table with red text
I didn't even know that table took a bgcolor parameter. :-) Do all elements take bgcolor/fgcolor parameters? > + (shr-stylesheet (list (cons 'background-color bgcolor))) That should be a (nconc ... shr-stylesheet), otherwise you're not inheriting from the parents. > + (shr-insert-with-style > + (concat line (char-to-string shr-table-vertical-line))) I'm not really sure I understand the point here. Surely tag-table should just colourise all its contents? Which it does now if you say , doesn't it? So: Render the entire table, and then colourise it afterwards, just like with all other tags... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen