mkapiref.py: Handle enum value with spaces (e.g., 1 << 2)

This commit is contained in:
Tatsuhiro Tsujikawa 2013-11-08 00:21:50 +09:00
parent 2ae788eddd
commit 873477d9bd
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ def process_enum(infile):
member_name = items[0]
if len(items) >= 3:
member_content.insert(0, '(``{}``) '\
.format(items[2].rstrip(',')))
.format(' '.join(items[2:]).rstrip(',')))
members.append((member_name, member_content))
elif line.startswith('}'):
enum_name = line.rstrip().split()[1]