This commit is contained in:
Kovid Goyal 2014-07-11 16:07:55 +05:30
parent 66238446ad
commit 9a26c7bbe0

View File

@ -490,7 +490,7 @@ class HTMLSmarts(NullSmarts):
tag = find_closest_containing_block_tag(block, offset, block_tag_names) tag = find_closest_containing_block_tag(block, offset, block_tag_names)
if tag is None: if tag is None:
return error_dialog(editor, _('Not in a block tag'), _( 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 &lt;p&gt; or &lt;div&gt; tag.'), show=True)
tags = [tag] tags = [tag]
for tag in reversed(tags): for tag in reversed(tags):
set_style_property(tag, 'text-align', value, editor) set_style_property(tag, 'text-align', value, editor)