Update of /cvsroot/boost/boost/libs/python/src/object
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27268/src/object

Modified Files:
        function.cpp 
Log Message:
Hans Meine's extra new-line for epydoc with reST compatibility

Index: function.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/src/object/function.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- function.cpp        26 Sep 2006 00:25:07 -0000      1.50
+++ function.cpp        6 Jun 2007 00:00:57 -0000       1.51
@@ -507,7 +507,8 @@
     {
         if (   PyObject_HasAttrString(mutable_attribute.ptr(), "__doc__")
             && mutable_attribute.attr("__doc__")) {
-            mutable_attribute.attr("__doc__") += "\n";
+            mutable_attribute.attr("__doc__") += (
+              mutable_attribute.attr("__doc__")[-1] != "\n" ? "\n\n" : "\n");
         }
         else {
             mutable_attribute.attr("__doc__") = "";


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to