Skip to content

Commit

Permalink
Fix newlines in OStatus and RSS serializations (mastodon#10183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and hiyuki2578 committed Oct 2, 2019
1 parent f3019b0 commit 68f924a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def format(status, **options)
raw_content = status.text

if options[:inline_poll_options] && status.poll
raw_content = raw_content + '\n\n' + status.poll.options.map { |title| "[ ] #{title}" }.join('\n')
raw_content = raw_content + "\n\n" + status.poll.options.map { |title| "[ ] #{title}" }.join("\n")
end

return '' if raw_content.blank?
Expand Down

0 comments on commit 68f924a

Please sign in to comment.