all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Emacs developers <emacs-devel@gnu.org>, "T.V Raman" <raman@google.com>
Subject: Re: EWW: Render span tags with spaces aroun them?
Date: Fri, 16 Oct 2020 16:57:57 +1100	[thread overview]
Message-ID: <CAC=50j_Oys2yTpfLgkjFQTWELD6zcNMHSo1uWZur+9+Cr89dnw@mail.gmail.com> (raw)
In-Reply-To: <87blh2u5zp.fsf@gnus.org>

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

I agree. Adding spaces for span elements will change the semantics and
likely affect other rendering in a negative way. For example, sometimes you
may use span to style just part of some text or it could affect layout of
things like icons etc. I note that neither chrome or firefox add spaces and
will just run the text into the previous/next word if there is no space
around the tag.

Having said that, I notice when looking at the example page you posted,
there is no text running into previous/next text around span tags. This
makes me think that the page is using a CSS style to style the element
which is not honoured by eww/shr? I had a quick look, but it really is a
very ugly piece of HTML.  At any rate, perhaps the issue is not that span
elements should have spaces added, but that eww/shr is not able to add the
CSS style which adds the spacing to the span content?

On Fri, 16 Oct 2020 at 15:54, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> "T.V Raman" <raman@google.com> writes:
>
> > But the user visible breakage is that things get run together and the
> > easiest fix might be to ensure that span tags when rendered are
> > surrounded by spaces
>
> The <span> rendering shouldn't have any extra spaces -- that's not what
> the element was designed for, and will make many texts unreadable.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
>
>

-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 2142 bytes --]

  reply	other threads:[~2020-10-16  5:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 17:13 EWW: Render span tags with spaces aroun them? T.V Raman
2020-10-16  4:52 ` Lars Ingebrigtsen
2020-10-16  5:57   ` Tim Cross [this message]
2020-10-16  6:25     ` Lars Ingebrigtsen
2020-10-16 14:45     ` T.V Raman

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='CAC=50j_Oys2yTpfLgkjFQTWELD6zcNMHSo1uWZur+9+Cr89dnw@mail.gmail.com' \
    --to=theophilusx@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.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.