ubbparser 0.0.8 → 0.0.9

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/ubbparser.rb +1 -0
  2. metadata +1 -1
data/lib/ubbparser.rb CHANGED
@@ -156,6 +156,7 @@ module UBBParser
156
156
  items = inner_text.split(/\n/)
157
157
  items.delete_if { | item | item.strip == "" }
158
158
  items.map! { | item | "<li>" + self.parse(item, parse_options) + "</li>" }
159
+ return (items.empty?) ? "" : "<ul class='#{parse_options[:class_list].to_s.strip}'>" + items.join("") + "</ul>"
159
160
  end
160
161
 
161
162
  # Centers the inner_text.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubbparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: