Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Description of problem: When using labeled printing a long enough label will continue off the edge of the page, resulting in lost information. How reproducible: Everytime Steps to Reproduce: 1. Create a really long label name in /etc/selinux/mls/setrans.conf 2. Setup labeled printing in cups 3. Print something with the long label and see that its truncated. Actual results: The label is truncated at the begining and end. Expected results: According to our evaluators the label needs to line wrap. Additional info: I have a patch that I will submit once testing on it finishes.
per 2/12 discussion, Matt continues to work on a patch.
Created attachment 150507 [details] cups-lspp patch with support for line wrapped labels This patch includes changes to filter/common.c which will automatically line wrap labels that are longer than the page. The label font for LSPP labels is switched to a fixed width font in order to perform the calculation, and when the server is in LSPP mode the label now starts with "LSPP:" so that the filter knows to handle line wrapping. This patch also introduces a PerPageLabel config file option, which defaults to yes. When an admin sets it to no CUPS will not force a label on each page of the output. Lastly this patch adds handling for the lpr option page-label which can normally be used to apply an additional label to the output, but now in LSPP mode this option is no longer honored. If a client attempts to use it the option is dropped by cupsd.
this appears to be working on 1:1.2.4-11.8
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2007-1020.html