File: docs-Use-correct-escape-sequences.patch

package info (click to toggle)
python-autodocsumm 0.2.14-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 536 kB
  • sloc: python: 985; makefile: 171; sh: 21
file content (30 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (2)
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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Tue, 6 Aug 2024 23:34:43 +0900
Subject: docs: Use correct escape sequences

---
 docs/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 3ab5ef3..8227ab7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -75,7 +75,7 @@ author = 'Philipp S. Sommer'
 # built documents.
 #
 # The short X.Y version.
-version = re.match('\d+\.\d+\.\d+', autodocsumm.__version__).group()
+version = re.match('\\d+\\.\\d+\\.\\d+', autodocsumm.__version__).group()
 # The full version, including alpha/beta/rc tags.
 release = autodocsumm.__version__
 
@@ -230,7 +230,7 @@ latex_elements = {
 
 # Additional stuff for the LaTeX preamble.
 #'preamble': '',
-'preamble': '\setcounter{tocdepth}{10}'
+'preamble': '\\setcounter{tocdepth}{10}'
 
 # Latex figure (float) alignment
 #'figure_align': 'htbp',