summaryrefslogtreecommitdiff
path: root/debian/patches/0115-Fix_text_filter.patch
blob: b9727fc3c7da060912b709768a51e24055340787 (plain)
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
Description: Fix error on handling text filter
Author: Alexander Zangerl <az@snafu.priv.at>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776315
Bug: https://bugs.linuxfoundation.org/show_bug.cgi?id=1283
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776315
Forwarded: no
Last-Update: 2022-02-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/fileconverter.c
===================================================================
--- trunk.orig/fileconverter.c
+++ trunk/fileconverter.c
@@ -37,9 +37,9 @@
  * is not set. (Except if the spooler is CUPS, then 'texttops' is used
  */
 const char *fileconverters[][2] = {
-    { "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=@@JOBTITLE@@ -o -" },
+    { "a2ps", "a2ps -1 @@--medium=@@PAGESIZE@@ @@--center-title=\"@@JOBTITLE@@ -o -" },
     { "enscript", "enscript -G @@-M @@PAGESIZE@@ @@-b \"Page $%|@@JOBTITLE@@ --margins=36:36:36:36 --mark-wrapped-lines=arrow --word-wrap -p-" },
-    { "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h @@JOBTITLE@@ -m36l36b36t36r -f -P- -" },
+    { "mpage", "mpage -o -1 @@-b @@PAGESIZE@@ @@-H -h \"@@JOBTITLE@@ -m36l36b36t36r -f -P- -" },
     { "paps", "paps @@--paper @@PAGESIZE@@ --header --font=11.5" },
     { NULL, NULL }
 };