Bug 97373 - [PATCH] substituting %U,%u,etc when printing footer
Summary: [PATCH] substituting %U,%u,etc when printing footer
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 19:04 UTC by Gregorio Guidi
Modified: 2005-01-18 21:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kate-print-footer.patch (678 bytes, patch)
2005-01-18 19:04 UTC, Gregorio Guidi
Details

Note You need to log in before you can comment on or make changes to this bug.
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 )];