ubbparser 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ubbparser.rb +1 -0
- 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.
|