Steve Piercy
2017-06-04 016e43c36929ae3e4a859aeb120083cdfc3366af
Specify preferences for line lengths and line breaks
1 files modified
7 ■■■■■ changed files
docs/style-guide.rst 7 ●●●●● patch | view | raw | blame | history
docs/style-guide.rst
@@ -235,6 +235,13 @@
Narrative documentation is not code, and should therefore not adhere to PEP8 or other line length conventions. When a translator sees only part of a sentence or paragraph, it makes it more difficult to translate the concept. Line lengths make ``diff`` more difficult. Text editors can soft wrap lines for display to avoid horizontal scrolling. We admit, we boofed it by using arbitrary 79-character line lengths in our own documentation, but we have seen the error of our ways and wish to correct this going forward.
Here are our preferences for line lengths and line breaks.
* The preferred line length pattern is *one line per paragraph* in `.rst` source files.
* It's acceptable not to change existing line breaks within `.rst` source files, going beyond 79 characters per line and not rewrapping text. The 79-character limit applies only to source code and docstrings in Python source files.
* One line per sentence is acceptable, but we strongly prefer one line per paragraph.
* Semantic line breaks are despised.
.. _style-guide-trailing-white-space: