[Bf-blender-cvs] [4f8b7f4] master: Docs: quiet warnings in reference doc syntax

Campbell Barton noreply at git.blender.org
Mon Jan 25 10:34:37 CET 2016


Commit: 4f8b7f44206264d38562bb92a7c73596ab7d3b6c
Author: Campbell Barton
Date:   Mon Jan 25 20:25:56 2016 +1100
Branches: master
https://developer.blender.org/rB4f8b7f44206264d38562bb92a7c73596ab7d3b6c

Docs: quiet warnings in reference doc syntax

===================================================================

M	doc/python_api/rst/bge_types/bge.types.KX_LightObject.rst
M	source/blender/python/mathutils/mathutils_geometry.c

===================================================================

diff --git a/doc/python_api/rst/bge_types/bge.types.KX_LightObject.rst b/doc/python_api/rst/bge_types/bge.types.KX_LightObject.rst
index f4d5b11..5ba7f3b 100644
--- a/doc/python_api/rst/bge_types/bge.types.KX_LightObject.rst
+++ b/doc/python_api/rst/bge_types/bge.types.KX_LightObject.rst
@@ -111,12 +111,14 @@ base class --- :class:`KX_GameObject`
 
       mat4_perspective_to_depth is a fixed matrix defined as follow:
 
-          0.5 0.0 0.0 0.5
-          0.0 0.5 0.0 0.5
-          0.0 0.0 0.5 0.5
-          0.0 0.0 0.0 1.0
-      Note:
-          There is one matrix of that type per lamp casting shadow in the scene.
+         0.5 0.0 0.0 0.5
+         0.0 0.5 0.0 0.5
+         0.0 0.0 0.5 0.5
+         0.0 0.0 0.0 1.0
+
+      .. note:
+
+         There is one matrix of that type per lamp casting shadow in the scene.
 
       :type: Matrix4x4 (read only)
 
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index a4ca252..ce9a9b5 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -417,7 +417,7 @@ PyDoc_STRVAR(M_Geometry_intersect_line_line_2d_doc,
 "\n"
 "   Takes 2 segments (defined by 4 vectors) and returns a vector for their point of intersection or None.\n"
 "\n"
-"   .. warning:: Despite its name, this function works on segments, and not on lines..."
+"   .. warning:: Despite its name, this function works on segments, and not on lines.\n"
 "\n"
 "   :arg lineA_p1: First point of the first line\n"
 "   :type lineA_p1: :class:`mathutils.Vector`\n"




More information about the Bf-blender-cvs mailing list