Changeset 986


Ignore:
Timestamp:
Jun 28, 2012 6:14:58 PM (11 years ago)
Author:
jemian
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • specdomain/trunk/src/specdomain/sphinxcontrib/specmacrofileparser.py

    r983 r986  
    391391
    392392        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',))
    394394        s += self._report_table('Function Macro Declarations', functions)
    395395
    396396        return '\n'.join(s)
    397397   
    398     def _report_table(self, title, itemlist):
     398    def _report_table(self, title, itemlist, col_keys = ('start_line', 'line',)):
    399399        """ return the itemlist as a reST table """
    400400        s = []
    401401        if len(itemlist) == 0:
    402402            return s
    403         col_keys = ('start_line', 'line',)  # TODO: temporary
    404403        widths = dict([( key, len(str(key)) ) for key in col_keys])
    405404        for d in itemlist:
Note: See TracChangeset for help on using the changeset viewer.