public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jonathan S. Katz <[email protected]>
To: Peter Eisentraut <[email protected]>
Cc: Daniel Westermann <[email protected]>
Cc: [email protected]
Cc: Magnus Hagander <[email protected]>
Subject: Re: Blanks in the first line before the first word in the code boxes
Date: Wed, 28 Mar 2018 22:02:38 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>


> On Mar 28, 2018, at 9:47 PM, Peter Eisentraut <[email protected]> wrote:
> 
> On 3/28/18 21:36, Jonathan S. Katz wrote:
>> 
>>> On Mar 28, 2018, at 9:32 PM, Peter Eisentraut
>>> <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>> Yeah, that looks weird.  I'll look into it.
>>> 
>>> 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
>> 
>> Something is adding spaces - it’s within the “<pre>” tag, which causes
>> browsers
>> to interpret each space literally.
>> 
>> For the case of the “digest” function, the outputted HTML shows the
>> first digest
>> function indented, the second one at the start of the new line.
> 
> 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 = tidy.parseString(contents.encode('utf-8'), **tidyopts)

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

Jonathan





view thread (18+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Blanks in the first line before the first word in the code boxes
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox