This commit is contained in:
Kovid Goyal 2022-06-20 14:10:56 +05:30
parent 546b5b42d1
commit 584456876d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -598,7 +598,7 @@ class Block(LRFStream, TextCSS):
self.attrs[attr] = getattr(self, attr)
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'):
s += 'textstyle="%d" '%(self.textstyle_id,)
for attr in self.attrs: