summaryrefslogtreecommitdiff
path: root/debian/patches/fix-python3.12-warning.patch
blob: 60e532ef4c9bae8bd61cc24ef2663f5ad4335dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix invalid escape sequence in less prompt.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064209
Forwarded: https://lists.sr.ht/~lioploum/offpunk-devel/patches/49706
Last-Update: 2024-03-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- offpunk.orig/opnk.py
+++ offpunk/opnk.py
@@ -49,7 +49,7 @@
 # are there on purpose (surch in asciiart)
 #--incsearch : incremental search starting rev581
 def less_cmd(file, histfile=None,cat=False,grep=None):
-    less_prompt = "page %%d/%%D- lines %%lb/%%L - %%Pb\%%"
+    less_prompt = "page %%d/%%D- lines %%lb/%%L - %%Pb\\%%"
     if less_version >= 581:
         less_base = "less --incsearch --save-marks -~ -XRfWiS -P \"%s\""%less_prompt
     elif less_version >= 572: