mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 00:33:50 +02:00
...
This commit is contained in:
parent
58203bbaa5
commit
2960c06867
1 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ def reformat_blocks(self, position, removed, added):
|
|||
doc.contentsChange.connect(self.reformat_blocks)
|
||||
|
||||
def parse_single_block(self, block):
|
||||
ud, new_ud = self.get_user_data(block)
|
||||
ud, is_new_ud = self.get_user_data(block)
|
||||
orig_state = ud.state
|
||||
pblock = block.previous()
|
||||
if pblock.isValid():
|
||||
|
|
@ -152,7 +152,7 @@ def parse_single_block(self, block):
|
|||
for i, num, fmt in run_loop(ud, self.state_map, self.formats, unicode(block.text())):
|
||||
if fmt is not None:
|
||||
formats.append((i, num, fmt))
|
||||
force_next_highlight = new_ud or ud.state != orig_state
|
||||
force_next_highlight = is_new_ud or ud.state != orig_state
|
||||
return formats, force_next_highlight
|
||||
|
||||
def reformat_block(self, block):
|
||||
|
|
|
|||
Loading…
Reference in a new issue