From acb1c4317274580def23d3d0087fddfccdb4bc84 Mon Sep 17 00:00:00 2001
From: Noboru Saito <noborusai@gmail.com>
Date: Fri, 15 Aug 2025 08:02:03 +0900
Subject: [PATCH] Adding support for code-shade verbatim style in
 stylesheet-fo.xsl

---
 doc/src/sgml/stylesheet-fo.xsl | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/src/sgml/stylesheet-fo.xsl b/doc/src/sgml/stylesheet-fo.xsl
index aec6de7064a..7d0952dcbfb 100644
--- a/doc/src/sgml/stylesheet-fo.xsl
+++ b/doc/src/sgml/stylesheet-fo.xsl
@@ -103,6 +103,17 @@
   </fo:block>
 </xsl:template>
 
+<xsl:param name="shade.verbatim">1</xsl:param>
+<xsl:attribute-set name="shade.verbatim.style">
+  <xsl:attribute name="border">0.2pt solid black</xsl:attribute>
+  <xsl:attribute name="margin-left">0</xsl:attribute>
+  <xsl:attribute name="margin-right">0</xsl:attribute>
+  <xsl:attribute name="background-color">#FAFAFA</xsl:attribute>
+  <xsl:attribute name="padding">5pt</xsl:attribute>
+  <xsl:attribute name="padding-bottom">10pt</xsl:attribute>
+  <xsl:attribute name="padding-top">0pt</xsl:attribute>
+</xsl:attribute-set>
+
 <!-- overrides stylesheet-common.xsl -->
 <!-- FOP needs us to be explicit about the font to use for right arrow -->
 <xsl:template match="returnvalue">
-- 
2.43.0

