oald_parser 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/oald_parser/formatter.rb +2 -2
  2. metadata +2 -2
@@ -7,7 +7,7 @@ module OaldParser
7
7
  end
8
8
 
9
9
  def format(content)
10
- lined_content = content.gsub(/<\s*br\s*\/*>/, '\n')
10
+ lined_content = content.gsub(/<\s*br\s*\/*>/, "\n")
11
11
  text = Nokogiri::HTML(lined_content).text
12
12
  first_lines = first_lines(text, @options[:lines])
13
13
  first_lines.strip
@@ -17,7 +17,7 @@ module OaldParser
17
17
 
18
18
  private
19
19
  def first_lines(text, lines)
20
- text.split('\n').first(lines).join('\n')
20
+ text.split("\n").first(lines).join("\n")
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Victor Savkin