Skip to content

Commit c89e5b2

Browse files
committed
Remove newlines from docstring signature
1 parent 5ccb9e4 commit c89e5b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ class cpp_function : public function {
462462
pybind11_fail("Internal error while parsing type signature (2)");
463463
}
464464

465+
signature.erase(std::remove(signature.begin(), signature.end(), '\n'), signature.end());
465466
rec->signature = guarded_strdup(signature.c_str());
466467
rec->args.shrink_to_fit();
467468
rec->nargs = (std::uint16_t) args;

0 commit comments

Comments
 (0)