Now that we’re moving to write our design documents in text files backed by GitHub, I’m wondering whether there’s a policy for line wrapping of prose?
There are a few options here:
- Hard wrap at 80 characters, or the like. I’d call this the old-school approach.
- Let the editor soft wrap (i.e., wrap without inserting carriage returns) everything. Two carriage returns separate paragraphs. I’d call this the new-school approach.
- One soft-wrapped line per sentence. That is, each sentence is its own line. I’d call this my approach.
The problem with the old school is that it creates chaos in git
diffs. Content moves from one line to the next without any change in semantic meaning.
The new-school approach produces cleaner diffs, but the diffs are too coarse. In writing, I feel that the sentence is the key unit of content. That’s why I promote one-sentence-per line writing.
Does anyone have any feelings one way or the other? Are my concerns about git
diffing unfounded? Do we already have a standard in place?