pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: pgsql-hackers@postgresql.org
Subject: fix prev link in docs
Date: Wed, 10 Jun 2026 14:16:17 -0500
Message-ID: <aim4AZorFKaC7Wrf@nathan> (raw)

Right now, if you go to the following page and click "Prev", it'll send you
to the middle of the previous chapter:

	https://www.postgresql.org/docs/devel/bgworker.html

My research indicates that this might caused by a bug in libxml2, but
regardless, a minimal fix is to change the link generation code to use
[position()=last()] instead of [last()] in the predicate on the union of
reverse axes.  Patch attached.

-- 
nathan

Attachments:

v1-0001-fix-prev-link-in-docs.patch (text/plain, 854B) download From b874600ab6df9252b04ea4b9d98ece2e1f917850 Mon Sep 17 00:00:00 2001 From: Nathan Bossart <nathan@postgresql.org> Date: Wed, 10 Jun 2026 14:14:45 -0500 Subject: [PATCH v1 1/1] fix prev link in docs --- doc/src/sgml/stylesheet-speedup-xhtml.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/stylesheet-speedup-xhtml.xsl b/doc/src/sgml/stylesheet-speedup-xhtml.xsl index da0f2b5a970..a3b3692ba03 100644 --- a/doc/src/sgml/stylesheet-speedup-xhtml.xsl +++ b/doc/src/sgml/stylesheet-speedup-xhtml.xsl @@ -208,7 +208,7 @@ |ancestor::article[1] |ancestor::topic[1] |preceding::sect1[1] - |ancestor::sect1[1])[last()]"/> + |ancestor::sect1[1])[position()=last()]"/> <xsl:variable name="next" select="(following::book[1] -- 2.50.1 (Apple Git-155)

view thread (8+ messages)  latest in thread

Message-ID: <aim4AZorFKaC7Wrf@nathan>
Permalink:  ../aim4AZorFKaC7Wrf@nathan/
Also on:    postgresql.org/message-id/aim4AZorFKaC7Wrf@nathan

 ·  · 

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: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com
  Subject: Re: fix prev link in docs
  In-Reply-To: <aim4AZorFKaC7Wrf@nathan>

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

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