Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
d00ab6b4
"vscode:/vscode.git/clone" did not exist on "a1edc08cce44f8dc077cb80c87a19b5c383bf467"
Commit
d00ab6b4
authored
Aug 15, 2017
by
John Chodera
Browse files
Replace italics
parent
96608513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
docs-source/api-python/process-docstring.py
docs-source/api-python/process-docstring.py
+4
-0
No files found.
docs-source/api-python/process-docstring.py
View file @
d00ab6b4
...
...
@@ -16,6 +16,9 @@ def process_docstring(app, what, name, obj, options, lines):
s
=
linesep
+
s
newline
=
'|LINEBREAK|.. admonition::|LINEBREAK| Deprecated'
+
linesep
return
newline
+
' '
+
s
.
replace
(
linesep
,
linesep
+
' '
)
def
repl3
(
m
):
s
=
m
.
group
(
1
)
return
'*'
+
s
+
'*'
linesep
=
'|LINEBREAK|'
joined
=
linesep
.
join
(
lines
)
...
...
@@ -23,6 +26,7 @@ def process_docstring(app, what, name, obj, options, lines):
joined
=
re
.
sub
(
r
'<tt><pre>((|LINEBREAK|)?.*?)</pre></tt>'
,
repl
,
joined
)
joined
=
re
.
sub
(
r
'<tt>(.*?)</tt>'
,
repl
,
joined
)
joined
=
re
.
sub
(
r
'@deprecated(.*?\|LINEBREAK\|)'
,
repl2
,
joined
,
flags
=
re
.
IGNORECASE
)
joined
=
re
.
sub
(
r
'<i>(.*?)</i>'
,
repl3
,
joined
)
lines
[:]
=
[(
l
if
not
l
.
isspace
()
else
''
)
for
l
in
joined
.
split
(
linesep
)]
...
...
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