mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
546b5b42d1
commit
584456876d
@ -598,7 +598,7 @@ class Block(LRFStream, TextCSS):
|
|||||||
self.attrs[attr] = getattr(self, attr)
|
self.attrs[attr] = getattr(self, attr)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
s = '\n<%s objid="%d" blockstyle="%d" '%(self.name, self.id, self.style_id)
|
s = '\n<%s objid="%d" blockstyle="%s" '%(self.name, self.id, getattr(self, 'style_id', ''))
|
||||||
if hasattr(self, 'textstyle_id'):
|
if hasattr(self, 'textstyle_id'):
|
||||||
s += 'textstyle="%d" '%(self.textstyle_id,)
|
s += 'textstyle="%d" '%(self.textstyle_id,)
|
||||||
for attr in self.attrs:
|
for attr in self.attrs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user