Browse Source

Preserve whitespace

tags/v0.2.0
aeris 2 years ago
parent
commit
d51c885fec
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

@@ -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