mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7d4695f37e
commit
05ae6894a5
@ -844,7 +844,7 @@ class TextEdit(PlainTextEdit):
|
|||||||
height = 1600
|
height = 1600
|
||||||
c = self.textCursor()
|
c = self.textCursor()
|
||||||
template, alt = 'url(%s)', ''
|
template, alt = 'url(%s)', ''
|
||||||
left = min(c.position(), c.anchor)
|
left = min(c.position(), c.anchor())
|
||||||
if self.syntax == 'html':
|
if self.syntax == 'html':
|
||||||
left, right = self.get_range_inside_tag()
|
left, right = self.get_range_inside_tag()
|
||||||
c.setPosition(left)
|
c.setPosition(left)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user