mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
66238446ad
commit
9a26c7bbe0
@ -490,7 +490,7 @@ class HTMLSmarts(NullSmarts):
|
||||
tag = find_closest_containing_block_tag(block, offset, block_tag_names)
|
||||
if tag is None:
|
||||
return error_dialog(editor, _('Not in a block tag'), _(
|
||||
'Cannot change text alignment as the cursor is not inside a block level tag, such as a <p> or <div> tag.'), show=True)
|
||||
'Cannot change text alignment as the cursor is not inside a block level tag, such as a <p> or <div> tag.'), show=True)
|
||||
tags = [tag]
|
||||
for tag in reversed(tags):
|
||||
set_style_property(tag, 'text-align', value, editor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user