| wrap_lines.py |
Wraps a CL description (commit message) at 72 columns.
Usage:
wrap_lines.py [FILE ...]
Reads the draft from the given files (or stdin) and prints the wrapped
description to stdout. Rules:
- The subject (first line) is kept on one line with whitespace normalized
and a single trailing period removed.
- Body paragraphs are re-flowed at 72 columns.
- Bullet items ("-", "*", "+", "1.", "1)") are re-flowed with continuation
lines aligned to the bullet text.
- Indented lines that are not bullets (code, logs, quotes) are kept as is.
- The trailing footer block (e.g. "Bug:", "Change-Id:") is kept as is, one
footer per line.
|
3961 |
- |
| wrap_lines_test.py |
Tests for wrap_lines.py |
11768 |
- |