File: correct-apos-in-manpages.diff

package info (click to toggle)
boxbackup 0.13~~git20221201.g166b3fa-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,172 kB
  • sloc: xml: 70,723; cpp: 55,456; ansic: 24,659; perl: 4,844; sh: 4,294; makefile: 588; python: 311
file content (32 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 9b9f4f1a376958f9d724c0834c7d5caef5d1a440 Mon Sep 17 00:00:00 2001
From: Ileana Dumitrescu <ileanadumi95@protonmail.com>
Date: Tue, 17 Jan 2023 15:01:56 +0200
Subject: [PATCH] correct apos in manpages

Patch content taken from https://chromium.googlesource.com/external/github.com/git/git/+/HEAD/Documentation/manpage-quote-apos.xsl

---
 docs/docbook/bb-man.xsl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/docs/docbook/bb-man.xsl b/docs/docbook/bb-man.xsl
index 0f9e5c75..4cd5047f 100644
--- a/docs/docbook/bb-man.xsl
+++ b/docs/docbook/bb-man.xsl
@@ -6,4 +6,13 @@
 
 <xsl:param name="chunk.section.depth" select="'0'"/>
 
+<xsl:template name="escape.apostrophe">
+  <xsl:param name="content"/>
+  <xsl:call-template name="string.subst">
+    <xsl:with-param name="string" select="$content"/>
+    <xsl:with-param name="target">'</xsl:with-param>
+    <xsl:with-param name="replacement">\(aq</xsl:with-param>
+  </xsl:call-template>
+</xsl:template>
+
 </xsl:stylesheet>
-- 
2.37.2