Version: unspecified (using KDE 4.4.5) OS: Linux kate no longer recognizes printing opcode %P. The %P opcode was defined until kde 4.x. The %P opcode was very useful in tracking total number of pages in a print job. Entering "%p of %P" into any of the Format fields in the Header & Footer Tab of the kate Print Dialog Window allowed print jobs to tag each page with the "current page" of "total pages", i.e., 1 of 13 ... 13 of 13. This was extremely helpful, so please return the %P opcode to kate. Reproducible: Always Steps to Reproduce: 1. open a file in kate 2. select File 3. select Print 4. select Options>> from the Print Dialog Window 5. select Header & Footer Tab 6. enter the "%P" opcode in the Footer's center Format field, (could use any Format field) 7. select the Print button on the Print Dialog Window Actual Results: Pages print with the characters "%P" versus "total pages" count. Expected Results: Pages should print with "total pages" count of the print job. This worked up until kde 4.x. PLEASE RESTORE!
Git commit df0e1d43d2ef57fade1cc7de0b344100766ea983 by Dominik Haumann. Committed on 10/08/2011 at 18:04. Pushed by dhaumann into branch 'master'. fix page count in printing BUG: 246699 M +31 -39 part/utils/kateprinter.cpp http://commits.kde.org/kate/df0e1d43d2ef57fade1cc7de0b344100766ea983
Git commit edb775a0db8cf171b1b3ffc4c8e7028df92ee289 by Dominik Haumann. Committed on 10/08/2011 at 18:04. Pushed by dhaumann into branch 'KDE/4.7'. fix page count in printing BUG: 246699 M +31 -39 part/utils/kateprinter.cpp http://commits.kde.org/kate/edb775a0db8cf171b1b3ffc4c8e7028df92ee289
It's back in KDE 4.7.1, along even with some other printing fixes.
There is one more thing to not in the current state: %P works correctly for the amount of pages in the document. But it is not adapted to the size needed if the "Syntax Guide" is printed. In other words, if you print the syntax guide, it may happen that the amount of printed pages increases, and %P is wrong. I didn't get around to fix this in time, have to open a new report for this.