Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1Mtv-0007uQ-69 for pgsql-docs@arkaria.postgresql.org; Thu, 29 Mar 2018 02:02:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1Mtt-0002vF-H0 for pgsql-docs@arkaria.postgresql.org; Thu, 29 Mar 2018 02:02:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1Mtt-0002v5-Ay for pgsql-docs@lists.postgresql.org; Thu, 29 Mar 2018 02:02:49 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1Mtp-0006CW-T8 for pgsql-docs@postgresql.org; Thu, 29 Mar 2018 02:02:48 +0000 Received: from pool-98-116-99-252.nycmny.fios.verizon.net ([98.116.99.252] helo=ph33r-retina.home) by meldrar.postgresql.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1Mtl-0008F0-Q2; Thu, 29 Mar 2018 02:02:44 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Blanks in the first line before the first word in the code boxes From: "Jonathan S. Katz" In-Reply-To: Date: Wed, 28 Mar 2018 22:02:38 -0400 Cc: Daniel Westermann , pgsql-docs@postgresql.org, Magnus Hagander Content-Transfer-Encoding: quoted-printable Message-Id: <07C79745-DDD1-4544-B95F-D878A477E898@postgresql.org> References: <1237101144.12611.1521809780021.JavaMail.zimbra@dbi-services.com> <5B6B7585-9892-4846-904F-BB5B4A011A7D@postgresql.org> To: Peter Eisentraut X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 28, 2018, at 9:47 PM, Peter Eisentraut = wrote: >=20 > On 3/28/18 21:36, Jonathan S. Katz wrote: >>=20 >>> On Mar 28, 2018, at 9:32 PM, Peter Eisentraut >>> >> > wrote: >>>> Yeah, that looks weird. I'll look into it. >>>=20 >>> Just looking at a nearby thread ... something is quite whacky with = the >>> web site stylesheet. It didn't use to look like this. Check this = out: >>> = https://www.postgresql.org/docs/10/static/pgcrypto.html#id-1.11.7.35.5 >>=20 >> Something is adding spaces - it=E2=80=99s within the =E2=80=9C
=E2=80=
=9D tag, which causes
>> browsers
>> to interpret each space literally.
>>=20
>> For the case of the =E2=80=9Cdigest=E2=80=9D function, the outputted =
HTML shows the
>> first digest
>> function indented, the second one at the start of the new line.
>=20
> Yeah, the spaces are in the source, so it's not a CSS issue.  But it
> doesn't come out like that if you build the docs locally.  So it's
> something in the web site code.

If I traced the code correctly, the line I suspect is such:

	s =3D tidy.parseString(contents.encode('utf-8'), **tidyopts)

I know that the web infrastructure recently updated to the Django 1.11
series, I=E2=80=99m not sure if libtidy or the like were also updated =
with that. I=E2=80=99ll
defer to Magnus on that.

Jonathan