Changeset 986
- Timestamp:
- Jun 28, 2012 6:14:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/sphinxcontrib/specmacrofileparser.py
r983 r986 391 391 392 392 s += self._report_table('Variable Declarations', declarations) 393 s += self._report_table('Macro Declarations', macros )393 s += self._report_table('Macro Declarations', macros, ('start_line', 'name', 'line',)) 394 394 s += self._report_table('Function Macro Declarations', functions) 395 395 396 396 return '\n'.join(s) 397 397 398 def _report_table(self, title, itemlist ):398 def _report_table(self, title, itemlist, col_keys = ('start_line', 'line',)): 399 399 """ return the itemlist as a reST table """ 400 400 s = [] 401 401 if len(itemlist) == 0: 402 402 return s 403 col_keys = ('start_line', 'line',) # TODO: temporary404 403 widths = dict([( key, len(str(key)) ) for key in col_keys]) 405 404 for d in itemlist:
Note: See TracChangeset
for help on using the changeset viewer.