mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
epydoc friendlier formatting
[SVN r39368]
This commit is contained in:
@@ -543,10 +543,10 @@ void function::add_to_namespace(
|
||||
|
||||
if (docstring_options::show_cpp_signatures_)
|
||||
{
|
||||
if(len(_doc))
|
||||
_doc += "\n "+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
|
||||
else
|
||||
_doc += " "+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
|
||||
// if(len(_doc))
|
||||
// _doc += "\n"+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
|
||||
// else
|
||||
_doc += str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
|
||||
}
|
||||
if(_doc)
|
||||
{
|
||||
@@ -630,7 +630,7 @@ extern "C"
|
||||
list signatures = function_doc_signature_generator::function_doc_signatures(f);
|
||||
if(!signatures) return python::detail::none();
|
||||
signatures.reverse();
|
||||
return python::incref( str("\n ").join(signatures).ptr());
|
||||
return python::incref( str("\n").join(signatures).ptr());
|
||||
}
|
||||
|
||||
static int function_set_doc(PyObject* op, PyObject* doc, void*)
|
||||
|
||||
Reference in New Issue
Block a user