Skip to content

Commit

Permalink
Indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juan0tron committed Feb 29, 2020
1 parent 1e04fbf commit 2cb05ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wagtailmedia/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ def describe_collection_media(collection):

@hooks.register('register_rich_text_features')
def register_custom_media_feature(features):
# Register a handler for converting <embed type="customimage"> to frontend HTML
if WAGTAIL_VERSION < (2, 5):
features.register_embed_type(embed_type='media', handler=MediaEmbedHandler)
else:
features.register_embed_type(handler=MediaEmbedHandler)
# Register a handler for converting <embed type="customimage"> to frontend HTML
if WAGTAIL_VERSION < (2, 5):
features.register_embed_type(embed_type='media', handler=MediaEmbedHandler)
else:
features.register_embed_type(handler=MediaEmbedHandler)

feature_name = 'wagtailmedia'

Expand Down

0 comments on commit 2cb05ec

Please sign in to comment.