Browse Source

Preserve whitespace

master
aeris 5 years ago
parent
commit
d51c885fec
  1. 2
      lib/cross-post/twitter.rb

2
lib/cross-post/twitter.rb

@ -51,7 +51,7 @@ class CrossPost
def split(text)
parts = []
part = ''
words = text.split ' '
words = text.split /\ /
words.each do |word|
old_part = part
part += ' ' unless part == ''

Loading…
Cancel
Save