From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: EWW: Render span tags with spaces aroun them? Date: Fri, 16 Oct 2020 07:45:14 -0700 Message-ID: <24457.45562.533096.553682@retriever.mtv.corp.google.com> References: <20201015171345.1A803C21231@raman-glaptop.localdomain> <87blh2u5zp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27313"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, raman@google.com, emacs-devel@gnu.org To: theophilusx@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 16 16:51:46 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTR58-0006zV-6A for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Oct 2020 16:51:46 +0200 Original-Received: from localhost ([::1]:44558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTR57-0006QQ-9G for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Oct 2020 10:51:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTQz6-0001jw-37 for emacs-devel@gnu.org; Fri, 16 Oct 2020 10:45:33 -0400 Original-Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:33132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTQyu-0002NM-Ld for emacs-devel@gnu.org; Fri, 16 Oct 2020 10:45:31 -0400 Original-Received: by mail-pf1-x429.google.com with SMTP id j18so1648747pfa.0 for ; Fri, 16 Oct 2020 07:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=7Pyu6w8vtLHuDrX5LruaZ71EysS/Wa27GjWdHVE76Vw=; b=WhKbwKKg2Rz95+oDLGj4EJ9lRb8q1ErhBYeeNY+/Tkg/CnZgjwy4gWWzMcloAS/CzF ml/0CB7tsrgQClNXkQndvQZXeY4jd3BMRGKTf5F7xrx4daW+MRZn5fLc5HLWsNsFF0N6 ku9XpImzw6wxqn3FLzehiosjLXtNk3xx3dpy1dsY+A/4uwcecIeZ86bCURuoiJf+hZsa Tn+AUjCzIjL7Q6h+qywyzBH23uArqBvFWkq4ZC8Pnl3QClhEcGRBF2YGaJMLfoQf8fzW izf7wJWd61wA7IZnXWUIurU5hwpai8iuAxXK+TjdhjSvmyj96pZsIufSpVocr0/iHT60 IdYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=7Pyu6w8vtLHuDrX5LruaZ71EysS/Wa27GjWdHVE76Vw=; b=A3YDugWusGinGCUvoTX8Y2qfmEcIYiXfEe11p+7EDIMt1wxjVuSkPm4/M1Q6lq6XZe CS01OYQmOwW8mZGvIjt3RMB9TXJuIg+HZFSvQ6fIKeQaGGYIBijSwrwm0VnuXBfiK9sK lnGJTKjdM5in+WyiQTVrUxSwCSOD+T31rgCpLu1KhRS60L93y6me16lefY9I/2DmjrgO dUjSZoznBOLJB4ZL5ZRogaWGxcxjks0ZX+edPWAdTOrNprb70uhTncZ6DJvBB4g34K1l oOoDgyvDYqpMZAIoMa0OuD03LhtVyrL2OeywySlW6zfwvooOG/bSiK6Fs1KCNSLQv9zB ppFw== X-Gm-Message-State: AOAM5338/QQ6BdxieLV9tod5S3jWVw/3MMRaf9Yvjp2UGpdy3iahpo5l kM8z7NgDyhUAdPMxXZaDt5DTCA== X-Google-Smtp-Source: ABdhPJzSuP7GoHjF0G/3a8Cb1pam1AykjANhAdAqlxo4Zb+9XfaLsOULs7RCbDqGO99bSZzQmLyDtQ== X-Received: by 2002:a62:7716:0:b029:155:2e1d:a940 with SMTP id s22-20020a6277160000b02901552e1da940mr4361312pfc.56.1602859516818; Fri, 16 Oct 2020 07:45:16 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1510:7220:84ff:fe0f:a150]) by smtp.gmail.com with ESMTPSA id q66sm3135178pfc.109.2020.10.16.07.45.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 07:45:15 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 93F851800404; Fri, 16 Oct 2020 07:45:14 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=raman@google.com; helo=mail-pf1-x429.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -178 X-Spam_score: -17.9 X-Spam_bar: ----------------- X-Spam_report: (-17.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-0.253, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257818 Archived-At: Thanks for looking Tim, hopefully you speak enough cricket to spot the bug. Cricinfo shows live scores during IPL games, when games are live, player names are running into the player's runs scored. In the markup, there an empty element that may well be getting styled via css (comment as far as I know is not part of html)Tim Cross = writes: > I agree. Adding spaces for span elements will change the semantics a= nd > likely affect other rendering in a negative way. For example, someti= mes you > may use span to style just part of some text or it could affect layo= ut of > things like icons etc. I note that neither chrome or firefox add spa= ces and > will just run the text into the previous/next word if there is no sp= ace > around the tag. >=20 > Having said that, I notice when looking at the example page you post= ed, > there is no text running into previous/next text around span tags. T= his > makes me think that the page is using a CSS style to style the eleme= nt > which is not honoured by eww/shr=3F I had a quick look, but it reall= y 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 a= dd the > CSS style which adds the spacing to the span content=3F >=20 > On Fri, 16 Oct 2020 at 15:54, Lars Ingebrigtsen wro= te: >=20 > > "T.V Raman" writes: > > > > > But the user visible breakage is that things get run together an= d the > > > easiest fix might be to ensure that span tags when rendered are > > > surrounded by spaces > > > > The 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 > > > > >=20 > --=20 > regards, >=20 > Tim >=20 > -- > Tim Cross --=20 =E2=99=89Id: kg:/m/0285kf1 =F0=9F=A6=AE=E2=99=89 -- ♉Id: kg:/m/0285kf1 🦮♉