changeset 1183:bc1b445e22fa

API_coding_style: Added code example to explain the point about the number of spaces after a period
author Olivier Delalleau <delallea@iro>
date Fri, 17 Sep 2010 16:51:09 -0400
parents 14aa0a5bb661
children 5783948b3f8c
files doc/v2_planning/API_coding_style.txt
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/v2_planning/API_coding_style.txt	Fri Sep 17 16:41:51 2010 -0400
+++ b/doc/v2_planning/API_coding_style.txt	Fri Sep 17 16:51:09 2010 -0400
@@ -43,6 +43,13 @@
 
     * Use only one space (not two) after a sentence-ending period in comments.
 
+      .. code-block:: python
+
+        # Good.
+        # This is the first sentence. It is followed by a single blank space.
+        # Bad.
+        # This is the first sentence.  It is followed by two blank spaces.
+
     * You do not need to add an extra blank line before the closing quotes of
       a multi-line docstring. Also, we ask that the first line of a multi-line
       docstring should contain only the opening quotes.