This commit is contained in:
Kovid Goyal 2010-01-27 08:52:47 -07:00
parent d3ac5835a8
commit 10d6c50ac5

View file

@ -170,6 +170,10 @@ def previous_element(self, idx):
return self.elements[idx-1]
class Box(list):
def __init__(self, type='p'):
self.type = type
class Region(object):
@ -222,6 +226,10 @@ def linearize(self):
for x in self.columns:
self.elements.extend(x)
# Find block quotes
indented = [i for (i, x) in enumerate(self.elements) if x.indent_fraction >= 0.2]
class Page(object):