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
d361a578
Commit
d361a578
authored
Apr 26, 2016
by
Wenzel Jakob
Browse files
minor mkdoc name sanitation fix
parent
19dfc50d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tools/mkdoc.py
tools/mkdoc.py
+4
-1
No files found.
tools/mkdoc.py
View file @
d361a578
...
...
@@ -157,7 +157,10 @@ def extract(filename, node, prefix, output):
if
node
.
kind
in
PRINT_LIST
:
comment
=
d
(
node
.
raw_comment
)
if
node
.
raw_comment
is
not
None
else
''
comment
=
process_comment
(
comment
)
name
=
sanitize_name
(
prefix
+
'_'
+
d
(
node
.
spelling
))
sub_prefix
=
prefix
if
len
(
sub_prefix
)
>
0
:
sub_prefix
+=
'_'
name
=
sanitize_name
(
sub_prefix
+
d
(
node
.
spelling
))
output
.
append
(
'
\n
static const char *%s = %sR"doc(%s)doc";'
%
(
name
,
'
\n
'
if
'
\n
'
in
comment
else
''
,
comment
))
num_extracted
+=
1
return
num_extracted
...
...
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