Commits

Kirill Simonov committed 2f455a2

htsqldoc: fixed table generation for nested segments.

Comments (0)

Files changed (1)

src/sphinxcontrib/htsqldoc/__init__.py

         rows = [[] for idx in range(height)]
         if not height:
             return rows
-        rows[0].append((u"", 1, height, [u'htsql-dummy']))
+        rows[0].append((u"", height, 1, [u'htsql-dummy']))
         return rows
 
     def body_height(self, data, cut):
             data = unicode(data)
             if not data:
                 classes.append(u'htsql-empty-val')
-        rows[0].append((data, 1, height, classes))
+        rows[0].append((data, height, 1, classes))
         return rows
 
     def cut(self, height):
         if not height:
             return rows
         classes = [u'htsql-%s-type' % self.domain['type'], u'htsql-cut']
-        rows[0].append((u"", 1, height, classes))
+        rows[0].append((u"", height, 1, classes))
         return rows
 
     def measures(self, data, cut):