doc/book/en/annexes/docstrings-conventions.rst
branchstable
changeset 6120 c000e41316ec
parent 5470 fb004819cab4
--- a/doc/book/en/annexes/docstrings-conventions.rst	Wed Aug 18 13:58:12 2010 +0200
+++ b/doc/book/en/annexes/docstrings-conventions.rst	Wed Aug 18 16:53:05 2010 +0200
@@ -1,8 +1,8 @@
 Javascript docstrings
 =====================
 
-Whereas in Python source code we only need to include a module docstrings 
-using the directive `.. automodule:: mypythonmodule`, we will have to 
+Whereas in Python source code we only need to include a module docstrings
+using the directive `.. automodule:: mypythonmodule`, we will have to
 explicitely define Javascript modules and functions in the doctrings since
 there is no native directive to include Javascript files.
 
@@ -32,7 +32,7 @@
 Basically we document javascript with RestructuredText docstring
 following the same convention as documenting Python code.
 
-The doctring in Javascript files must be contained in standard 
+The doctring in Javascript files must be contained in standard
 Javascript comment signs, starting with `/**` and ending with `*/`,
 such as::
 
@@ -44,7 +44,7 @@
   * All the follwing line will be prefixed with a `*` followed by a space.
   * ...
   * ...
-  */ 
+  */
 
 
 Comments line prefixed by `//` will be ignored. They are reserved for source
@@ -61,12 +61,12 @@
 
 Its purpose is to define the function prototype such as::
 
-    .. function:: loadxhtml(url, data, reqtype, mode) 
+    .. function:: loadxhtml(url, data, reqtype, mode)
 
-If any namespace is used, we should add it in the prototype for now, 
-until we define an appropriate directive.
-::
-    .. function:: jQuery.fn.loadxhtml(url, data, reqtype, mode) 
+If any namespace is used, we should add it in the prototype for now,
+until we define an appropriate directive::
+
+    .. function:: jQuery.fn.loadxhtml(url, data, reqtype, mode)
 
 Function parameters
 ~~~~~~~~~~~~~~~~~~~
@@ -76,7 +76,7 @@
 
 Example of a javascript function docstring::
 
-    .. function:: loadxhtml(url, data, reqtype, mode) 
+    .. function:: loadxhtml(url, data, reqtype, mode)
 
     cubicweb loadxhtml plugin to make jquery handle xhtml response