Changeset 1318


Ignore:
Timestamp:
14/03/19 09:03:47 (2 months ago)
Author:
mjuckes
Message:

fixed cell color error in html tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/overviewTabs.py

    r1313 r1318  
    4343 
    4444hmap0 = {'CMIP6':'Historical', 'ScenarioMIP':'\cellcolor{llgray} ScenarioMIP'} 
     45hmaph0 = {'CMIP6':'Historical', 'ScenarioMIP':'ScenarioMIP'} 
    4546class r1(object): 
    4647  infoLog = collections.defaultdict( list ) 
     
    204205    mmh = [] 
    205206    mhdr = [ '\\rot{80}{%s}' % hmap0.get(m,m) for m in self.mipsp + ['TOTAL','Unique']] 
    206     mhdrh = [ '<th><div><span>%s</span></div></th>' % hmap0.get(m,m) for m in self.mipsp + ['TOTAL','Unique','CALC']] 
     207    mhdrh = [ '<th><div><span>%s</span></div></th>' % hmaph0.get(m,m) for m in self.mipsp + ['TOTAL','Unique','CALC']] 
    207208    oo.write( ' & '.join(['',] + mhdr ) + '\\\\ \n\\hline\n' ) 
    208209    mmh.append( '<table>\n<tr class="rotate">' + ''.join(['<th></th>',] + mhdrh ) + '</tr>\n' ) 
Note: See TracChangeset for help on using the changeset viewer.