ubbparser 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.
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: