private static void indentMultilineValue(String value, StringBuilder tableInfo, int[] columnWidths,
      boolean printNull) {
    if (value == null) {
      if (printNull) {
        tableInfo.append(String.format("%-" + ALIGNMENT + "s", value));
      }
      tableInfo.append(LINE_DELIM);
    } else {
      String[] valueSegments = value.split("\n|\r|\r\n");
      tableInfo.append(String.format("%-" + ALIGNMENT + "s", valueSegments[0])).append(LINE_DELIM);
      for (int i = 1; i < valueSegments.length; i++) {
        printPadding(tableInfo, columnWidths);
        tableInfo.append(String.format("%-" + ALIGNMENT + "s", valueSegments[i])).append(LINE_DELIM);
      }
    }
  }
Indent processing for multi-line values.
Values should be indented the same amount on each line.
If the first line comment starts indented by k, the following line comments should also be indented by k.

@param value the value to write
@param tableInfo the buffer to write to
@param columnWidths the widths of the previous columns
@param printNull print null as a string, or do not print anything
ql/src/java/org/apache/hadoop/hive/ql/ddl/ShowUtils.java