File: fix-invalid-escape-sequences.patch

package info (click to toggle)
python-bitstring 3.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,428 kB
  • sloc: python: 7,249; makefile: 12; sh: 8
file content (39 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download
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
33
34
35
36
37
38
39
Description: Fix invalid escape sequences
Forwarded: https://github.com/scott-griffiths/bitstring/pull/206
Bug-Debian: https://bugs.debian.org/963551
Author: Matthias Urlichs <matthias@urlichs.de>
Last-Update: 2020-06-23

--- a/bitstring.py
+++ b/bitstring.py
@@ -11,13 +11,13 @@
 BitStream -- A mutable container with streaming methods.
 
                       Bits (base class)
-                     /    \
- + mutating methods /      \ + streaming methods
-                   /        \
+                     //    \\
+ + mutating methods //      \\ + streaming methods
+                   //        \\
               BitArray   ConstBitStream
-                   \        /
-                    \      /
-                     \    /
+                   \\        //
+                    \\      //
+                     \\    //
                     BitStream
 
 Functions:
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -215,7 +215,7 @@
 \\cleardoublepage
 """ % release
 
-latex_elements = {'preamble': '\setcounter{tocdepth}{2}\definecolor{VerbatimBorderColor}{rgb}{1,1,1}',
+latex_elements = {'preamble': '\\setcounter{tocdepth}{2}\\definecolor{VerbatimBorderColor}{rgb}{1,1,1}',
                   'fncychap': '\\usepackage[Sonny]{fncychap}',
                   'maketitle': titlepage,
                   'papersize': 'a4paper',