fixed next problem with wrap_header patch

This commit is contained in:
Adam Tkac 2007-02-12 12:20:50 +00:00
parent ecde858754
commit f262f92bce
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
--- enscript-1.6.1/lib/simple.hdr.wrap_header 1997-03-03 09:00:08.000000000 +0100
+++ enscript-1.6.1/lib/simple.hdr 2007-01-26 13:06:55.000000000 +0100
+++ enscript-1.6.1/lib/simple.hdr 2007-02-12 12:57:02.000000000 +0100
@@ -1,50 +1,68 @@
-%
-% Default simple header.
@ -99,7 +99,7 @@
+ d_header_w user_header_right_str stringwidth pop sub 5 sub
+ 0 moveto user_header_right_str show
+ } {
+ fname length fmodstr length add pagenumstr length add d_header_w 6 idiv le{
+ fname length fmodstr length add pagenumstr length add 95 6 idiv add d_header_w 6 idiv le{
+ 5 0 moveto fname show
+ 45 0 rmoveto fmodstr show
+ 45 0 rmoveto pagenumstr show

View File

@ -1,7 +1,7 @@
Summary: A plain ASCII to PostScript converter.
Name: enscript
Version: 1.6.4
Release: 6%{?dist}
Release: 7%{?dist}
License: GPL
Group: Applications/Publishing
Source0: http://www.iki.fi/mtr/genscript/enscript-%{version}.tar.gz
@ -90,10 +90,13 @@ fi
%changelog
* Fri Jan 26 2007 Adam Tkac <atkac redhat com> 1.6.4-6
* Mon Feb 12 2007 Adam Tkac <atkac redhat com> 1.6.4-7.fc7
- wrap_header patch had problems with around 70 characters long headers
* Fri Jan 26 2007 Adam Tkac <atkac redhat com> 1.6.4-6.fc7
- wrap_header patch has been improved
* Tue Dec 19 2006 Adam Tkac <atkac redhat com> 1.6.4-5
* Tue Dec 19 2006 Adam Tkac <atkac redhat com> 1.6.4-5.fc7
- fixed long-header patch
* Fri Sep 01 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 1.6.4-4