redcar-html 1.0 → 1.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/html.rb +1 -1
  2. metadata +2 -2
data/lib/html.rb CHANGED
@@ -21,7 +21,7 @@ module Redcar
21
21
  def execute
22
22
  if doc.selection?
23
23
  text = doc.selected_text
24
- lines = text.split(/\n/)
24
+ lines = text.split(/\r\n?|\n/)
25
25
  lines.collect! do |c|
26
26
  wrapped = wrap_text_in_white_space(c) { |t| "<li>#{t}</li>" }
27
27
  p "Wrapped: |#{wrapped}|"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcar-html
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.01'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-17 00:00:00.000000000Z
12
+ date: 2011-09-21 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: ''
15
15
  email: