]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
docs-xml:manpages: allow for longer version strings
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 20 Jun 2024 23:29:36 +0000 (11:29 +1200)
committerJule Anger <janger@samba.org>
Tue, 23 Jul 2024 07:32:13 +0000 (07:32 +0000)
The default value (30) truncates "Samba 4.21.0pre1-DEVELOPERBUILD" to
"Samba 4.21.0pre1-DEVELOPE" in the bottom left corner of the man page.
("Samba 4.21.0pre1-DEVELOPE" is only 25 bytes long, not 30, but let's
not worry about that).

On narrow terminals (< ~75 columns) this makes it more likely that
the version string will run into the date string.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15672

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
(cherry picked from commit 7fb38aee129789cce28ddf54bd7234f8c5f57d97)

docs-xml/xslt/man.xsl

index e252b56d5e5c3f2599f4eb0a2c39d0f705ed508c..a1870079ba60221d7f1a89a79dcf5220d2f6cbc2 100644 (file)
@@ -11,6 +11,9 @@
 <xsl:param name="use.id.as.filename" select="1"/>
 <xsl:param name="man.endnotes.are.numbered" select="0"/>
 
+<!-- make room for long version numbers -->
+<xsl:param name="man.th.extra2.max.length">40</xsl:param>
+
 <!-- 
     Our ulink stylesheet omits @url part if content was specified
 -->