lib/onebox/engine/cloudapp_onebox.rb in onebox-2.2.12 vs lib/onebox/engine/cloudapp_onebox.rb in onebox-2.2.13
- old
+ new
@@ -23,31 +23,31 @@
private
def link_html(og)
<<-HTML
- <a href='#{og.url}' target='_blank' rel='noopener'>
- #{og.title}
- </a>
- HTML
+ <a href='#{og.url}' target='_blank' rel='noopener'>
+ #{og.title}
+ </a>
+ HTML
end
def video_html(og)
direct_src = ::Onebox::Helpers.normalize_url_for_output("#{og.get(:url)}/#{og.title}")
<<-HTML
- <video width='480' height='360' #{og.title_attr} controls loop>
- <source src='#{direct_src}' type='video/mp4'>
- </video>
- HTML
+ <video width='480' height='360' #{og.title_attr} controls loop>
+ <source src='#{direct_src}' type='video/mp4'>
+ </video>
+ HTML
end
def image_html(og)
<<-HTML
- <a href='#{og.url}' target='_blank' class='onebox' rel='noopener'>
- <img src='#{og.image}' #{og.title_attr} alt='CloudApp' width='480'>
- </a>
- HTML
+ <a href='#{og.url}' target='_blank' class='onebox' rel='noopener'>
+ <img src='#{og.image}' #{og.title_attr} alt='CloudApp' width='480'>
+ </a>
+ HTML
end
end
end
end