Bug 97373

Summary: [PATCH] substituting %U,%u,etc when printing footer
Product: [Applications] kate Reporter: Gregorio Guidi <greg_g>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kate-print-footer.patch

Description Gregorio Guidi 2005-01-18 19:04:12 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The %U, %u, %f, etc strings are not substituted if they are entered as left footer in the printer dialog -> Header & Footer.

The attached patch fix this (it's a simple off-by-one error).
Comment 1 Gregorio Guidi 2005-01-18 19:04:36 UTC
Created attachment 9155 [details]
kate-print-footer.patch
Comment 2 Anders Lund 2005-01-18 21:22:32 UTC
CVS commit by alund: 

Patch from Gregorio Guidi
BUG: 97373


  M +1 -1      kateprinter.cpp   1.15


--- kdelibs/kate/part/kateprinter.cpp  #1.14:1.15
@@ -246,5 +246,5 @@ bool KatePrinter::print (KateDocument *d
            int pos = reTags.search( footerTags );
            QString rep;
-           while ( pos > 0 )
+           while ( pos > -1 )
            {
              rep = tags[reTags.cap( 1 )];