call site 1 for xml.raw.__init__
apigen/source/testing/test_html.py - line 82
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
   def test_add_row(self):
       doc = HTMLDocument('ascii')
       doc.add_row(1, ['""" this is a foo implementation """'])
->     doc.add_row(2, [''])
       doc.add_row(3, ['class ', html.a('Foo', name='Foo'), ':'])
       doc.add_row(4, ['    pass'])
       tbody = doc.tbody
       assert len(tbody) == 4
       assert unicode(tbody[0][0]) == '<td class="lineno">1</td>'
       assert unicode(tbody[0][1]) == ('<td class="code">'
                                       '<span class="string">'
                                       '&quot;&quot;&quot; '
                                       'this is a foo implementation '
                                       '&quot;&quot;&quot;'
                                       '</span></td>')
       assert unicode(tbody[1][1]) == '<td class="code">&#xa0;</td>'
       assert unicode(tbody[2][1]) == ('<td class="code">'
                                       '<span class="alt_keyword">class'
                                       '</span> '
                                       '<a name="Foo">Foo</a>:</td>')
       assert unicode(tbody[3][1]) == ('<td class="code">    '
                                       '<span class="alt_keyword">pass'
                                       '</span></td>')
apigen/source/html.py - line 148
146
147
148
149
150
151
152
   def add_row(self, lineno, text):
       if text == ['']:
->         text = [raw('&#xa0;')]
       else:
           text = prepare_line(text, self.tokenizer, self.encoding)
       self.tbody.append(html.tr(html.td(str(lineno), class_='lineno'),
                                 html.td(class_='code', *text)))