extras: rst: fix scan regression

This commit is contained in:
Jérôme Carretero 2013-08-25 18:33:53 -04:00
parent 6cc46d9c39
commit 459f04cbee
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def parse_rst_node(node, nodes, names, seen):
return
seen.append(node)
code = node.read()
re_rst = re.compile(r'^\s*.. (?P<subst>\|\S+\|) (?P<type>include|image|figure):: (?P<file>.*)$', re.M)
re_rst = re.compile(r'^\s*.. ((?P<subst>\|\S+\|) )?(?P<type>include|image|figure):: (?P<file>.*)$', re.M)
for match in re_rst.finditer(code):
ipath = match.group('file')
itype = match.group('type')