emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EWW Feature Request: Mark start and end of table cells?


From: Lars Ingebrigtsen
Subject: Re: EWW Feature Request: Mark start and end of table cells?
Date: Thu, 22 Oct 2020 13:35:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"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 via email to

[Prev in Thread] Current Thread [Next in Thread]