Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
b3ef54a5
Commit
b3ef54a5
authored
Feb 24, 2016
by
Wenzel Jakob
Browse files
trim docstrings (closes #112)
parent
4a50fa5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+5
-1
No files found.
include/pybind11/pybind11.h
View file @
b3ef54a5
...
...
@@ -303,7 +303,11 @@ protected:
signatures
+=
"
\n
"
;
if
(
it
->
doc
&&
strlen
(
it
->
doc
)
>
0
)
{
signatures
+=
"
\n
"
;
signatures
+=
it
->
doc
;
std
::
string
str
=
it
->
doc
;
size_t
first
=
str
.
find_first_not_of
(
"
\n\t\r
"
);
size_t
last
=
str
.
find_last_not_of
(
"
\n\t\r
"
);
if
(
first
!=
std
::
string
::
npos
)
signatures
+=
str
.
substr
(
first
,
last
-
first
+
1
);
signatures
+=
"
\n
"
;
}
if
(
it
->
next
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment