Method: IsoDoc::Function::Inline#text_parse
- Defined in:
- lib/isodoc/function/inline.rb
#text_parse(node, out) ⇒ Object
129 130 131 132 133 134 135 136 137 138 |
# File 'lib/isodoc/function/inline.rb', line 129 def text_parse(node, out) return if node.nil? || node.text.nil? text = node.to_s @sourcecode == "pre" and text = text.gsub("\n", "<br/>").gsub("<br/> ", "<br/> ") @sourcecode and text = text.gsub(/ (?= )/, " ") out << text end |