mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 20:30:30 -06:00
Support backslash "escaping" in descitem signatures.
This commit is contained in:
1 parent
acda414be2
commit
a6cadae78f
1 file changed
+2
-1
@@ -278,7 +278,8 @@ def desc_directive(desctype, arguments, options, content, lineno,
|
||||
node['desctype'] = desctype
|
||||
|
||||
noindex = ('noindex' in options)
|
||||
signatures = map(lambda s: s.strip(), arguments[0].split('\n'))
|
||||
# remove backslashes to support (dummy) escapes; helps Vim's highlighting
|
||||
signatures = map(lambda s: s.strip().replace('\\', ''), arguments[0].split('\n'))
|
||||
names = []
|
||||
clsname = None
|
||||
for i, sig in enumerate(signatures):
|
||||
|
||||
Reference in new issue
Block a user