From c644322d89225947f3dd60f54812601e3ee448d8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 3 Aug 2012 22:35:55 +0900 Subject: [PATCH] manual: Include enum value in manual --- doc/mkapiref.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/mkapiref.py b/doc/mkapiref.py index a0c9553..bdd3883 100755 --- a/doc/mkapiref.py +++ b/doc/mkapiref.py @@ -123,7 +123,11 @@ def process_enum(infile): elif re.match(r'\s*/\*\*\n', line): member_content = read_content(infile) line = infile.readline() - member_name = line.split()[0] + items = line.split() + member_name = items[0] + if len(items) >= 3: + member_content.insert(0, '(``{}``) '\ + .format(items[2].rstrip(','))) members.append((member_name, member_content)) elif line.startswith('}'): enum_name = line.rstrip().split()[1]