Specifies wether the serializer should use indentation and optimize for
readability.
<p/>
Note: This is a hint, and may be ignored by DOM implemenations.

@param pPrettyPrint {@code true} to enable pretty printing
173537
public void setPrettyPrint(final boolean pPrettyPrint) {
        DOMConfiguration configuration = serializer.getDomConfig();
        if (configuration.canSetParameter(PARAM_PRETTY_PRINT, pPrettyPrint)) {
            configuration.setParameter(PARAM_PRETTY_PRINT, pPrettyPrint);
        }
    }
39616
public void setPatternFill(PdfPatternPainter p, Color color) {
        if (ExtendedColor.getType(color) == ExtendedColor.TYPE_SEPARATION)
            setPatternFill(p, color, ((SpotColor)color).getTint());
        else
            setPatternFill(p, color, 0);
    }
958828
private void print(String text) {
    String indent = Strings.repeat(" ", mIndentationLevel * INDENT_SIZE);
    mPrintStream.println(indent + text);
  }
746353
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.setLastBreak(this.isBreak());
        if (!this.isLastBreak())
            return false;
        if ((iPrintOptions & HtmlConstants.FOOTING_SCREEN) != HtmlConstants.FOOTING_SCREEN)
            this.setLastBreak(false);     // For footers only

        boolean bInputFound = super.printData(out, iPrintOptions);
        
        return bInputFound;
    }
12375
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        boolean bFieldsFound = false;
        int iNumCols = this.getSFieldCount();
        for (int iIndex = 0; iIndex < iNumCols; iIndex++)
        {
            ScreenField sField = this.getSField(iIndex);
            boolean bPrintControl = this.isPrintableControl(sField, iPrintOptions);
            if (this.isToolbar())
                if (sField.getConverter() == null)
                    bPrintControl = false;
            if (this instanceof BaseGridScreen)
                if (iIndex < ((BaseGridScreen)this).getNavCount())
                    bPrintControl = true;   // Move to isPrintable.
            if (bPrintControl)
            {
                if (!bFieldsFound)
                    this.printDataStartForm(out, iPrintOptions);    // First time
                this.printDataStartField(out, iPrintOptions);
                this.printScreenFieldData(sField, out, iPrintOptions);
                this.printDataEndField(out, iPrintOptions);
                bFieldsFound = true;
            }
        }
        if (bFieldsFound)
            this.printDataEndForm(out, iPrintOptions);
        return bFieldsFound;
    }
1128654
public final static String formatForPrint(String input) {
        if (input.length() > 60) {
            StringBuffer tmp = new StringBuffer(input.substring(0, 60));
            tmp.append("&");
            input = tmp.toString();
        }
        return input;
    }
954800
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.addHiddenParam(out, TrxMessageHeader.LOG_TRX_ID, this.getProperty(TrxMessageHeader.LOG_TRX_ID));
        return super.printData(out, iPrintOptions);   // Don't print
    }
145897
def pprint(data, tag_lookup, indent=0):
    """"""
    output = ''
    if isinstance(data, dict):
        for key, value in data.items():
            tag = tag_lookup(key)
            if isinstance(value, (dict, list)) and tag.type is not read_bplist:
                output += '{0}{1}: {2}\n'.format(indent*' ', key, tag)
                output += pprint(value, tag_lookup, indent+2)
            else:
                output += '{0}{1}: {2} {3}\n'.format(
                    indent*' ', key, str(value), tag)
    elif isinstance(data, list):
        for elem in data:
            output += pprint(elem, tag_lookup, indent)
    else:
        raise exceptions.InvalidDmapDataError(
            'invalid dmap data: ' + str(data))
    return output
788500
public String print(ReadablePartial partial) {
        StringBuilder buf = new StringBuilder(requirePrinter().estimatePrintedLength());
        try {
            printTo((Appendable) buf, partial);
        } catch (IOException ex) {
            // StringBuilder does not throw IOException
        }
        return buf.toString();
    }
656977
def pprint(self, stream=None, indent=1, width=80, depth=None):
    
    pp.pprint(to_literal(self), stream, indent, width, depth)
30460
@Override protected void visitPrintNode(PrintNode node) {
    Expression expr = translateExpr(node.getExpr());

    // Process directives.
    for (PrintDirectiveNode directiveNode : node.getChildren()) {

      // Get directive.
      SoyPrintDirective directive = directiveNode.getPrintDirective();
      if (!(directive instanceof SoyJsSrcPrintDirective)) {
        errorReporter.report(
            node.getSourceLocation(), UNKNOWN_SOY_JS_SRC_PRINT_DIRECTIVE, directiveNode.getName());
        return;
      }

      // Get directive args.
      List<ExprRootNode> argNodes = directiveNode.getArgs();

      // Convert args to CodeChunks.
      List<Expression> argChunks = new ArrayList<>(argNodes.size());
      for (ExprRootNode argNode : argNodes) {
        argChunks.add(translateExpr(argNode));
      }

      // Apply directive.
      expr =
          SoyJsPluginUtils.applyDirective(
              expr,
              (SoyJsSrcPrintDirective) directive,
              argChunks,
              node.getSourceLocation(),
              errorReporter);
    }

    chunks.add(expr);
  }
1130771
public void setPatternStroke(PdfPatternPainter p, Color color, float tint) {
        checkWriter();
        if (!p.isStencil())
            throw new RuntimeException("An uncolored pattern was expected.");
        PageResources prs = getPageResources();
        PdfName name = writer.addSimplePattern(p);
        name = prs.addPattern(name, p.getIndirectReference());
        ColorDetails csDetail = writer.addSimplePatternColorspace(color);
        PdfName cName = prs.addColor(csDetail.getColorName(), csDetail.getIndirectReference());
        content.append(cName.getBytes()).append(" CS").append_i(separator);
        outputColorNumbers(color, tint);
        content.append(' ').append(name.getBytes()).append(" SCN").append_i(separator);
    }
696853
public void printDataStartForm(PrintWriter out, int iPrintOptions)
    {
        if ((iPrintOptions & HtmlConstants.DETAIL_SCREEN) != 0)
            out.println("<tr>\n<td colspan=\"20\">");
        out.println("<table border=\"0\" cellspacing=\"10\">\n<tr>");
    }
147303
@Override
    public final IonTextWriterBuilder withPrettyPrinting()
    {
        _Private_IonTextWriterBuilder b = mutable();
        b._pretty_print = true;
        return b;
    }
769417
public void setTracePrettyPrint(boolean pretty) {
        if (this.httpClient instanceof DefaultHttpClient) {
            ((DefaultHttpClient)this.httpClient).setTracePrettyPrint(pretty);
        }
        else
            throw new UnsupportedOperationException("Invalid operation for class " + this.httpClient.getClass());
    }
544208
def set_pprint_format(indent=None, width=None, depth=None):
    
    if indent is not None:
        PPRINT_FORMAT['indent'] = indent
    if width is not None:
        PPRINT_FORMAT['width'] = width
    if depth is not None:
        PPRINT_FORMAT['depth'] = depth
    return PPRINT_FORMAT
661111
public static byte[] getPdf(JasperPrint jasperPrint) throws JRException {
        byte[] content = null;
        ByteArrayOutputStream baos = null;
        try {
            baos = new ByteArrayOutputStream();
            JRPdfExporter exporter = new JRPdfExporter();
            content = getBytes(exporter, baos, jasperPrint);
        } finally {
            if (baos != null) {
                try {
                    baos.flush();
                    baos.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
        return content;
    }