mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
02078028bc
commit
328000d9f7
@ -451,8 +451,10 @@ class HTMLSmarts(NullSmarts):
|
|||||||
''' Move the cursor to the tag identified by sourceline and tags (a
|
''' Move the cursor to the tag identified by sourceline and tags (a
|
||||||
list of tags names on the specified line). If attribute is specified
|
list of tags names on the specified line). If attribute is specified
|
||||||
the cursor will be placed at the start of the attribute value. '''
|
the cursor will be placed at the start of the attribute value. '''
|
||||||
block = editor.document().findBlockByNumber(sourceline - 1) # blockNumber() is zero based
|
|
||||||
found_tag = False
|
found_tag = False
|
||||||
|
if sourceline is None:
|
||||||
|
return found_tag
|
||||||
|
block = editor.document().findBlockByNumber(sourceline - 1) # blockNumber() is zero based
|
||||||
if not block.isValid():
|
if not block.isValid():
|
||||||
return found_tag
|
return found_tag
|
||||||
c = editor.textCursor()
|
c = editor.textCursor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user