[C++-sig] [patch] signatures/docstrings formatting
Nikolay Mladenov
nickm at sitius.com
Thu Sep 13 23:15:04 CEST 2007
The command line help output becomes very ugly...
Neal Becker wrote:
>
> Nikolay Mladenov wrote:
>
> > Are you saying that every one of the two is sufficient?
> >
>
> Sorry if I was not clear. Here is a single clean patch:
>
> diff -r 056ace359968 libs/python/src/object/function.cpp
> --- a/libs/python/src/object/function.cpp Wed Sep 12 19:05:52 2007 -0400
> +++ b/libs/python/src/object/function.cpp Thu Sep 13 12:57:44 2007 -0400
> @@ -539,14 +539,14 @@ void function::add_to_namespace(
> _doc += str(reinterpret_cast<const char*>(detail::py_signature_tag));
> }
> if (doc != 0 && docstring_options::show_user_defined_)
> - _doc += doc;
> + _doc += str("\n\n")+doc;
>
> if (docstring_options::show_cpp_signatures_)
> {
> if(len(_doc))
> - _doc += "\n "+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
> + _doc += "\n"+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
> else
> - _doc += " "+str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
> + _doc += str(reinterpret_cast<const char*>(detail::cpp_signature_tag));
> }
> if(_doc)
> {
More information about the Cplusplus-sig
mailing list