/[gnue]/gnue-reports/src/adapters/filters/SimpleTabulation/tabulator/formatters/html.py
ViewVC logotype

Diff of /gnue-reports/src/adapters/filters/SimpleTabulation/tabulator/formatters/html.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by siesel, Mon Nov 3 20:36:06 2003 UTC revision 1.7 by siesel, Mon Nov 3 20:43:28 2003 UTC
# Line 73  class DirectFormatter: Line 73  class DirectFormatter:
73    
74    def EndReportTitle(self, reporttitle):    def EndReportTitle(self, reporttitle):
75      self._reporttitle = reporttitle      self._reporttitle = reporttitle
76      self.writeout('  <h1>%s</h1>\n<hr>\n' % self._reporttitle.encode(gConfig('textEncoding'),'replace'))      self.writeout('  <h1>%s</h1>\n<hr>\n' % self._reporttitle)
77    
78    def BeginSection(self):    def BeginSection(self):
79      pass      pass
# Line 86  class DirectFormatter: Line 86  class DirectFormatter:
86            
87    def EndSectionTitle(self, sectiontitle):    def EndSectionTitle(self, sectiontitle):
88      self._sectiontitle = sectiontitle      self._sectiontitle = sectiontitle
89      self.writeout('  <h2>%s</h2>\n' % self._sectiontitle.encode(gConfig('textEncoding'),'replace'))      self.writeout('  <h2>%s</h2>\n' % self._sectiontitle)
90    
91    def BeginTable(self):    def BeginTable(self):
92      self._odd = 1      self._odd = 1
# Line 108  class DirectFormatter: Line 108  class DirectFormatter:
108    def EndColHead(self, colhead, width, alignment=None):    def EndColHead(self, colhead, width, alignment=None):
109      self._colalign.append(alignment)      self._colalign.append(alignment)
110      self.writeout('align="%s">%s</th>\n' % (alignment,      self.writeout('align="%s">%s</th>\n' % (alignment,
111                                                colhead.encode(gConfig('textEncoding'),'replace')))                                                colhead))
112    
113    def BeginRow(self, rowtype=None):    def BeginRow(self, rowtype=None):
114      self._rowtype = rowtype      self._rowtype = rowtype
# Line 131  class DirectFormatter: Line 131  class DirectFormatter:
131        self.writeout('        <td class="item" ')        self.writeout('        <td class="item" ')
132    
133    def EndCol(self, col, index):    def EndCol(self, col, index):
134      self.writeout('align="%s">%s</td>\n' % (self._colalign[index],      self.writeout('align="%s">%s</td>\n' % (self._colalign[index],col))
                                               col.encode(gConfig('textEncoding'),'replace')))  
135    
136    
137  STYLE = """body {  STYLE = """body {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26