ItEr43S10SoporteImpresionMultiplesPaxinasItEr42S15: Fixed printing parameter problem when selecting labels and resources

This commit is contained in:
Lorenzo Tilve 2010-01-18 09:11:22 +01:00 committed by Javier Moran Rua
parent d809115a93
commit fe576bd5f5

View file

@ -157,7 +157,7 @@ public class CutyPrint {
try {
// CutyCapt command execution
LOG.debug(captureString);
LOG.warn(captureString);
Process print;
Process server = null;
@ -210,17 +210,16 @@ public class CutyPrint {
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
String includeCSSLines = "body { width: " + width + "px; } \n";
String includeCSSLines = " body { width: " + width + "px; } \n";
if ((labels != null) && (labels.equals("all"))) {
includeCSSLines = ".task-labels { display: inline !important;} ";
includeCSSLines += " .task-labels { display: inline !important;} \n";
}
if ((resources != null) && (resources.equals("all"))) {
includeCSSLines = ".task-resources { display: inline !important;} ";
includeCSSLines += " .task-resources { display: inline !important;} \n";
}
out.write(includeCSSLines.getBytes());
in.close();
out.close();
LOG.debug(_("Generated CSS:") + generatedCSS.getAbsolutePath());
} catch (FileNotFoundException ex) {
LOG.error(ex.getMessage() + _(" in the specified directory."));
System.exit(0);