diff options
| author | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-02-19 14:51:39 -0500 |
|---|---|---|
| committer | ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-02-19 14:51:39 -0500 |
| commit | b5eb6016bbc455921ce3d8ec24589d706f8a5fb1 (patch) | |
| tree | 9b663c0dca18cf17f5a81d5b223b7243c25e85f6 /src | |
| parent | bc5d81fe60b324459ac428f4269316bd4cfdc3a1 (diff) | |
| download | invidious-b5eb6016bbc455921ce3d8ec24589d706f8a5fb1.tar.gz invidious-b5eb6016bbc455921ce3d8ec24589d706f8a5fb1.tar.bz2 invidious-b5eb6016bbc455921ce3d8ec24589d706f8a5fb1.zip | |
add spaces at end of attribute
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/comments.cr | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index b866b6ef..6c323bc1 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -336,10 +336,10 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false) end if child["isSponsor"].as_bool sponsor_icon = String.build do |str| - str << %(<img alt="") - str << %(src="/ggpht) << URI.parse(child["sponsorIconUrl"].as_s).request_target << '"' - str << %(title=") << translate(locale, "Channel Sponsor") << '"' - str << %(width="16" height="16"/>) + str << %(<img alt="" ) + str << %(src="/ggpht) << URI.parse(child["sponsorIconUrl"].as_s).request_target << "\" " + str << %(title=") << translate(locale, "Channel Sponsor") << "\" " + str << %(width="16" height="16" />) end end html << <<-END_HTML @@ -696,12 +696,12 @@ def content_to_comment_html(content, video_id : String? = "") emojiAlt = emojiImage.dig?("accessibility", "accessibilityData", "label").try &.as_s || text emojiThumb = emojiImage["thumbnails"][0] text = String.build do |str| - str << %(<img alt=") << emojiAlt << '"' - str << %(src="/ggpht) << URI.parse(emojiThumb["url"].as_s).request_target << '"' - str << %(title=") << emojiAlt << '"' - str << %(width=") << emojiThumb["width"] << '"' - str << %(height=") << emojiThumb["height"] << '"' - str << %( style="margin-right:2px;margin-left:2px;"/>) + str << %(<img alt=") << emojiAlt << "\" " + str << %(src="/ggpht) << URI.parse(emojiThumb["url"].as_s).request_target << "\" " + str << %(title=") << emojiAlt << "\" " + str << %(width=") << emojiThumb["width"] << "\" " + str << %(height=") << emojiThumb["height"] << "\" " + str << %(style="margin-right:2px;margin-left:2px;"/>) end else # Hide deleted channel emoji |
