feed_yamlizer 0.0.8 → 0.0.9

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.
@@ -1,3 +1,3 @@
1
1
  class FeedYamlizer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/feed_yamlizer.rb CHANGED
@@ -68,7 +68,10 @@ class FeedYamlizer
68
68
  #@result[:items][-1][:content][:simplified] = simplified
69
69
  textified = textified.gsub(FeedYamlizer::NEWLINE_PLACEHOLDER, "\n").
70
70
  gsub(SPACE_PLACEHOLDER, " ").
71
- gsub(TAB_PLACEHOLDER, " ")
71
+ gsub(TAB_PLACEHOLDER, " ").
72
+ gsub(/^\s+$/, "").
73
+ # eliminate extra blank lines
74
+ gsub(/\n{3,}/, "\n\n")
72
75
  # next two lines are dev lines
73
76
  #puts textified
74
77
  #exit
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi