Commit 873477d9 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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

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