mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
More robust use of goto_sourceline
This commit is contained in:
parent
0a0c9039e0
commit
fd5ea1552e
@ -1422,9 +1422,10 @@ class Boss(QObject):
|
||||
tags_before.append(tag)
|
||||
if tag is node:
|
||||
break
|
||||
else:
|
||||
tags_before.append(node)
|
||||
lnum = int(lnum)
|
||||
editor.goto_sourceline(lnum, tags_before, attribute='id' if node.get('id') else None)
|
||||
return True
|
||||
return editor.goto_sourceline(lnum, tags_before, attribute='id' if node.get('id') else None)
|
||||
return False
|
||||
|
||||
def goto_style_declaration(self, data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user