mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
Call gdbpy_fix_doc_string_indentation for function help
If you invoke "help function _caller_is", you'll see that the help text is indented strangely. The fix for this is to add a call to gdbpy_fix_doc_string_indentation in the appropriate spot, as is already done for Python commands and parameters.
This commit is contained in:
parent
218ee1660d
commit
bf0a217775
@ -120,6 +120,8 @@ fnpy_init (PyObject *self, PyObject *args, PyObject *kwds)
|
||||
docstring = python_string_to_host_string (ds_obj.get ());
|
||||
if (docstring == NULL)
|
||||
return -1;
|
||||
docstring
|
||||
= gdbpy_fix_doc_string_indentation (std::move (docstring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user