mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 02:33:42 +02:00
...
This commit is contained in:
parent
d3ac5835a8
commit
10d6c50ac5
1 changed files with 8 additions and 0 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue