Changeset 1507
- Timestamp:
- 09/28/08 14:07:33 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/timeseries/scikits/timeseries/doc/ext/docscraper.py
r1458 r1507 590 590 if not line.strip(): continue 591 591 if ':' in line: 592 match = field_rgx.match(line) 593 if match: 594 (func_role, current_func) = match.groups() 595 current_func = current_func.replace("`", '') 596 rest = None 592 597 if current_func: 593 functions.append((current_func, rest ))598 functions.append((current_func, rest, func_role)) 594 599 r = line.split(':', 1) 595 600 current_func = r[0].strip() … … 601 606 elif not line.startswith(' '): 602 607 if current_func: 603 functions.append((current_func, rest ))608 functions.append((current_func, rest, func_role)) 604 609 current_func = None 605 610 rest = Docstring([]) … … 614 619 rest.append(line.strip()) 615 620 if current_func: 616 functions.append((current_func, rest)) 621 functions.append((current_func, rest, func_role)) 622 # 623 print "DEBUG: functions", functions 617 624 # 618 625 output = [] 619 626 last_had_desc = True 620 for (func, desc ) in functions:627 for (func, desc, func_role) in functions: 621 628 if func_role: 622 629 link = ":%s:`%s`" % (func_role, func)
