add spaces at end of attribute

This commit is contained in:
ChunkyProgrammer 2023-02-19 14:51:39 -05:00
parent bc5d81fe60
commit b5eb6016bb

View file

@ -337,8 +337,8 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
if child["isSponsor"].as_bool if child["isSponsor"].as_bool
sponsor_icon = String.build do |str| sponsor_icon = String.build do |str|
str << %(<img alt="" ) str << %(<img alt="" )
str << %(src="/ggpht) << URI.parse(child["sponsorIconUrl"].as_s).request_target << '"' str << %(src="/ggpht) << URI.parse(child["sponsorIconUrl"].as_s).request_target << "\" "
str << %(title=") << translate(locale, "Channel Sponsor") << '"' str << %(title=") << translate(locale, "Channel Sponsor") << "\" "
str << %(width="16" height="16" />) str << %(width="16" height="16" />)
end end
end end
@ -696,11 +696,11 @@ def content_to_comment_html(content, video_id : String? = "")
emojiAlt = emojiImage.dig?("accessibility", "accessibilityData", "label").try &.as_s || text emojiAlt = emojiImage.dig?("accessibility", "accessibilityData", "label").try &.as_s || text
emojiThumb = emojiImage["thumbnails"][0] emojiThumb = emojiImage["thumbnails"][0]
text = String.build do |str| text = String.build do |str|
str << %(<img alt=") << emojiAlt << '"' str << %(<img alt=") << emojiAlt << "\" "
str << %(src="/ggpht) << URI.parse(emojiThumb["url"].as_s).request_target << '"' str << %(src="/ggpht) << URI.parse(emojiThumb["url"].as_s).request_target << "\" "
str << %(title=") << emojiAlt << '"' str << %(title=") << emojiAlt << "\" "
str << %(width=") << emojiThumb["width"] << '"' str << %(width=") << emojiThumb["width"] << "\" "
str << %(height=") << emojiThumb["height"] << '"' str << %(height=") << emojiThumb["height"] << "\" "
str << %(style="margin-right:2px;margin-left:2px;"/>) str << %(style="margin-right:2px;margin-left:2px;"/>)
end end
else else