"vscode:/vscode.git/clone" did not exist on "a1edc08cce44f8dc077cb80c87a19b5c383bf467"
Commit d00ab6b4 authored by John Chodera's avatar John Chodera
Browse files

Replace italics

parent 96608513
......@@ -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)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment