formatCompactTo formats the contents of the tree as a single-line string to the provided buffer. Any nested textRecord.Diff and textRecord.Comment fields are ignored. However, not all nodes in the tree should be collapsed as a single-line. If a node can be collapsed as a single-line, it is replaced
([]byte, diffMode)
| 85 | // |
| 86 | // This does not mutate the receiver. |
| 87 | formatCompactTo([]byte, diffMode) ([]byte, textNode) |
| 88 | // formatExpandedTo formats the contents of the tree as a multi-line string |
| 89 | // to the provided buffer. In order for column alignment to operate well, |
| 90 | // formatCompactTo must be called before calling formatExpandedTo. |