libcupsfilters: White space/indentation clean-up in ghostscript()
@@ -1369,9 +1369,10 @@ ghostscript(int inputfd, /* I - File descriptor input stream */
}
else if (printer_attrs)
{
- if(((ipp_attr = ippFindAttribute(printer_attrs,
- "color-supported", IPP_TAG_BOOLEAN))!=NULL
- && ippGetBoolean(ipp_attr, 0))){
+ if (((ipp_attr =
+ ippFindAttribute(printer_attrs,
+ "color-supported", IPP_TAG_BOOLEAN)) != NULL &&
+ ippGetBoolean(ipp_attr, 0))) {
/* Color PCL XL printer, according to printer attributes */
pxlcolor = 1;
}
@@ -1379,11 +1380,18 @@ ghostscript(int inputfd, /* I - File descriptor input stream */
if (job_attrs)
{
- if((ipp_attr = ippFindAttribute(job_attrs, "pwg-raster-document-type", IPP_TAG_ZERO))!=NULL ||
- (ipp_attr = ippFindAttribute(job_attrs, "color-space", IPP_TAG_ZERO))!=NULL ||
- (ipp_attr = ippFindAttribute(job_attrs, "color-model", IPP_TAG_ZERO))!=NULL ||
- (ipp_attr = ippFindAttribute(job_attrs, "print-color-mode", IPP_TAG_ZERO))!=NULL ||
- (ipp_attr = ippFindAttribute(job_attrs, "output-mode", IPP_TAG_ZERO))!=NULL)
+ if ((ipp_attr =
+ ippFindAttribute(job_attrs, "pwg-raster-document-type",
+ IPP_TAG_ZERO)) != NULL ||
+ (ipp_attr =
+ ippFindAttribute(job_attrs, "color-space", IPP_TAG_ZERO)) != NULL ||
+ (ipp_attr =
+ ippFindAttribute(job_attrs, "color-model", IPP_TAG_ZERO)) != NULL ||
+ (ipp_attr =
+ ippFindAttribute(job_attrs, "print-color-mode",
+ IPP_TAG_ZERO)) != NULL ||
+ (ipp_attr =
+ ippFindAttribute(job_attrs, "output-mode", IPP_TAG_ZERO)) != NULL)
{
ippAttributeString(ipp_attr, buf, sizeof(buf));
if (!strncasecmp(buf, "AdobeRgb", 8) ||
@@ -1401,7 +1409,9 @@ ghostscript(int inputfd, /* I - File descriptor input stream */
else if(!strncasecmp(buf, "Device", 6))
{
char* ptr = buf+6;
- if(strtol(ptr, (char **)&ptr, 10)>1){ /* If printer seems to support more than 1 color */
+ if (strtol(ptr, (char **)&ptr, 10) > 1) { /* If printer seems to
+ support more than 1
+ color */
pxlcolor = 1;
}
}
@@ -1438,7 +1448,8 @@ ghostscript(int inputfd, /* I - File descriptor input stream */
else if(!strncasecmp(val, "Device", 6))
{
const char *ptr = val + 6;
- if(strtol(ptr, (char **)&ptr, 10)>1) /* Printer seems to support more then 1 color */
+ if(strtol(ptr, (char **)&ptr, 10)>1) /* Printer seems to support
+ more then 1 color */
{
pxlcolor = 1;
}
@@ -1465,7 +1476,7 @@ ghostscript(int inputfd, /* I - File descriptor input stream */
snprintf(tmpstr, sizeof(tmpstr), "-I%s", t);
cupsArrayAdd(gs_args, strdup(tmpstr));
- /* set the device output ICC profile */
+ /* Set the device output ICC profile */
if (icc_profile != NULL && icc_profile[0] != '\0') {
snprintf(tmpstr, sizeof(tmpstr), "-sOutputICCProfile=%s", icc_profile);
cupsArrayAdd(gs_args, strdup(tmpstr));
