# File lib/rubyful_soup.rb, line 707 def end_text currentText = @currentText.join('') unless currentText.empty? if currentText.strip.empty? if currentText =~ /\n/ currentText = "\n" else currentText = ' ' end end #puts "Setting up text #{currentText}" currentText = NavigableString.new(currentText) currentText.setup(@currentTag, @previous_parsed) @previous_parsed.next_parsed = currentText if @previous_parsed @previous_parsed = currentText @currentTag.contents.push(currentText) end @currentText = [] end