all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "T.V Raman" <raman@google.com>
Cc: emacs-devel@gnu.org
Subject: Re: EWW Feature Request: Mark start and end of table cells?
Date: Thu, 22 Oct 2020 13:35:49 +0200	[thread overview]
Message-ID: <87h7qmijca.fsf@gnus.org> (raw)
In-Reply-To: <p91mu0fbbfd.fsf@google.com> (T. V. Raman's message of "Wed, 21 Oct 2020 12:56:22 -0700")

"T.V Raman" <raman@google.com> writes:

> (7 7 1 (#("testing" 0 1 (shr-indentation 0))) 1 nil nil)
> so (elt td-result 3) is the rendered cell, could you explain the meaning
> of the other list elements in the returned value?

The return value (at the end of the function) should be pretty
self-explanatory:

      (list max-width
	    natural-width
	    (count-lines (point-min) (point-max))
	    (split-string (buffer-string) "\n")
	    (if (dom-attr dom 'colspan)
		(string-to-number (dom-attr dom 'colspan))
	      1)
	    (cdr (assq 'color shr-stylesheet))
	    (cdr (assq 'background-color shr-stylesheet))))))


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



      reply	other threads:[~2020-10-22 11:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 23:59 EWW Feature Request: Mark start and end of table cells? T.V Raman
2020-10-21 10:53 ` Lars Ingebrigtsen
2020-10-21 14:27   ` T.V Raman
2020-10-22 11:25     ` Lars Ingebrigtsen
2020-10-22 14:30       ` T.V Raman
2020-10-21 15:10   ` T.V Raman
2020-10-21 19:56     ` T.V Raman
2020-10-22 11:35       ` Lars Ingebrigtsen [this message]

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=87h7qmijca.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.