Skip to content

Commit

Permalink
Fixed rendering of excess whitespace in status card titles (#30017)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyjrogers committed Apr 24, 2024
1 parent f4a53f3 commit b128474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/link_details_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def height
end

def title
html_entities.decode(structured_data&.headline || opengraph_tag('og:title') || document.xpath('//title').map(&:content).first)
html_entities.decode(structured_data&.headline || opengraph_tag('og:title') || document.xpath('//title').map(&:content).first).strip
end

def description
Expand Down

0 comments on commit b128474

Please sign in to comment.