File: 01_backspace_parsed.dpatch

package info (click to toggle)
python-pypdf 1.12-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 192 kB
  • ctags: 302
  • sloc: python: 1,955; makefile: 33; sh: 13
file content (18 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_backspace_parsed.dpatch by Ralf Schlatterbeck <rsc@runtux.com>
##
## DP: #511252: escape-sequence '\b' in PDF strings is incorrectly parsed as 'b' instead of Backspace.

@DPATCH@
diff -urNad trunk~/pyPdf/generic.py trunk/pyPdf/generic.py
--- trunk~/pyPdf/generic.py	2008-08-11 22:04:17.000000000 -0300
+++ trunk/pyPdf/generic.py	2009-01-09 11:24:13.000000000 -0200
@@ -299,7 +299,7 @@
             elif tok == "t":
                 tok = "\t"
             elif tok == "b":
-                tok == "\b"
+                tok = "\b"
             elif tok == "f":
                 tok = "\f"
             elif tok == "(":