lib/onebox/engine/github_issue_onebox.rb in onebox-1.8.91 vs lib/onebox/engine/github_issue_onebox.rb in onebox-1.8.92

- old
+ new

@@ -27,10 +27,10 @@ body_text = @raw["body_text"] content_words = body_text.gsub("\n\n", "\n").gsub("\n", "<br>").split(" ") #one pass of removing double newline, then we change \n to <br> and later on we revert it back to \n this is a workaround to avoid losing newlines after we join it back. max_words = 20 short_content = content_words[0..max_words].join(" ") - short_content << "..." if content_words.length > max_words + short_content += "..." if content_words.length > max_words ulink = URI(link) { link: @url, title: "Issue: " + @raw["title"],