Browse Source

Remove whitespace because Sanitize create \n for <p>

tags/v0.2.0
aeris 1 year ago
parent
commit
011d0c16b8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/cross-post/twitter.rb

+ 1
- 1
lib/cross-post/twitter.rb View File

@@ -30,7 +30,7 @@ class CrossPost
30 30
 		end
31 31
 
32 32
 		def post_status(status)
33
-			content = Sanitize.clean status.content
33
+			content = Sanitize.clean(status.content).strip
34 34
 			content = CGI.unescape_html content
35 35
 			media   = status.media_attachments.collect { |f| open f.url }
36 36
 

Loading…
Cancel
Save