mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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)
|
tags_before.append(tag)
|
||||||
if tag is node:
|
if tag is node:
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
tags_before.append(node)
|
||||||
lnum = int(lnum)
|
lnum = int(lnum)
|
||||||
editor.goto_sourceline(lnum, tags_before, attribute='id' if node.get('id') else None)
|
return editor.goto_sourceline(lnum, tags_before, attribute='id' if node.get('id') else None)
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def goto_style_declaration(self, data):
|
def goto_style_declaration(self, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user